chrisparrinello opened a new pull request, #17041: URL: https://github.com/apache/lucene/pull/17041
### Description `TestColumnBatchVectorColumn.testDenseBatchesMatchAddDocument` builds the same index twice, once through `addBatch` and once through `addDocument`, then compares KNN search scores with a tolerance of `0f`. The two indexes live in independently randomized `newDirectory()` calls, so they can end up on different directory implementations (for example `ByteBuffersDirectory` and `MMapDirectory`). Those use different scorers: the heap scorer, and the memory-segment scorer with its bulk SIMD ops. The two sum floats in a different order, so identical vectors can score one ULP apart. Failure with seed `24D18076127D3084`: `expected:<0.96858424> but was:<0.9685843>`. The same iteration seed (`24D18076127D3084:DEF990E8C3290C25`) reproduces on aarch64, with `batchDir=ByteBuffersDirectory`, `docDir=MMapDirectory`, `dim=10`, `COSINE`, `Lucene99HnswVectorsFormat`. Doc IDs and raw vectors are still compared exactly. Only the score comparison now allows `1e-5f`, in line with `TestKnnFloatVectorQuery`. Verified on `branch_11x`: 1000 iterations of the test pass and `checkGoogleJavaFormat` passes. Backport of #17040 to `branch_11x`. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
