You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "msokolov (via GitHub)" <gi...@apache.org> on 2025/12/02 14:16:36 UTC
[I] TestLucene95HnswVectorsFormat.testRandomWithUpdatesAndGraph fails with duplicate neighbor [lucene]
msokolov opened a new issue, #15467:
URL: https://github.com/apache/lucene/issues/15467
### Description
gradlew test --tests TestLucene95HnswVectorsFormat.testRandomWithUpdatesAndGraph -Dtests.seed=D50703366970158A -Dtests.multiplier=3 -Dtests.locale=khq-Latn-ML -Dtests.timezone=Arctic/Longyearbyen -Dtests.asserts=true -Dtests.file.encoding=UTF-8
reproduces for me, giving
```
+org.apache.lucene.index.CheckIndex$CheckIndexException: Field "field" has repeated neighbors of node 6 with value 192
at __randomizedtesting.SeedInfo.seed([D50703366970158A:ABDAC62BDE1BBDE9]:0)
at app/org.apache.lucene.core@11.0.0-SNAPSHOT/org.apache.lucene.index.CheckIndex.testHnswGraph(CheckIndex.java:3035)
at app/org.apache.lucene.core@11.0.0-SNAPSHOT/org.apache.lucene.index.CheckIndex.testHnswGraphs(CheckIndex.java:2919)
at app/org.apache.lucene.core@11.0.0-SNAPSHOT/org.apache.lucene.index.CheckIndex.testSegment(CheckIndex.java:1126)
at app/org.apache.lucene.core@11.0.0-SNAPSHOT/org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:823)
at app/org.apache.lucene.core@11.0.0-SNAPSHOT/org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:593)
at app/org.apache.lucene.test_framework@11.0.0-SNAPSHOT/org.apache.lucene.tests.util.TestUtil.checkIndex(TestUtil.java:333)
at app/org.apache.lucene.test_framework@11.0.0-SNAPSHOT/org.apache.lucene.tests.store.MockDirectoryWrapper.close(MockDirectoryWrapper.java:917)
at app/org.apache.lucene.test_framework@11.0.0-SNAPSHOT/org.apache.lucene.tests.index.BaseKnnVectorsFormatTestCase.testRandomWithUpdatesAndGraph(BaseKnnVectorsFormatTestCase.java:1615)
```
### Version and environment details
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
Re: [I] TestLucene95HnswVectorsFormat.testRandomWithUpdatesAndGraph fails with duplicate neighbor [lucene]
Posted by "msokolov (via GitHub)" <gi...@apache.org>.
msokolov closed issue #15467: TestLucene95HnswVectorsFormat.testRandomWithUpdatesAndGraph fails with duplicate neighbor
URL: https://github.com/apache/lucene/issues/15467
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
Re: [I] TestLucene95HnswVectorsFormat.testRandomWithUpdatesAndGraph fails with duplicate neighbor [lucene]
Posted by "msokolov (via GitHub)" <gi...@apache.org>.
msokolov commented on issue #15467:
URL: https://github.com/apache/lucene/issues/15467#issuecomment-3602305689
If I revert ef10476d98ab37b92fe48a1f71a1a06dad009ae3 the test passes. I don't think we should revert, since this is a pretty benign condition, but we should figure out how to fix it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
Re: [I] TestLucene95HnswVectorsFormat.testRandomWithUpdatesAndGraph fails with duplicate neighbor [lucene]
Posted by "msokolov (via GitHub)" <gi...@apache.org>.
msokolov commented on issue #15467:
URL: https://github.com/apache/lucene/issues/15467#issuecomment-3606617373
see https://github.com/apache/lucene/pull/15470
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
Re: [I] TestLucene95HnswVectorsFormat.testRandomWithUpdatesAndGraph fails with duplicate neighbor [lucene]
Posted by "msokolov (via GitHub)" <gi...@apache.org>.
msokolov commented on issue #15467:
URL: https://github.com/apache/lucene/issues/15467#issuecomment-3602429870
Itseems top be happening in the `repairDisconnectNodes` operation; when adding the nodes, `NeighborArray.addOutOfOrder` doesn't check to see if the node is already present in the neighbor list -- this is when adding the reverse link.
I wonder if in this context we should skip the adding of reverse links? We could have a version of addDiverseNeighbors that only adds the forward link.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org