benwtrent opened a new pull request, #11849: URL: https://github.com/apache/lucene/pull/11849
When running the `reindex` task with KnnGraphTest, exceptionally large datasets can be used. Since mmap is used to read the data, we need to know the buffer size. This size is limited to Integer.MAX_VALUE, which is inadequate for larger datasets. An example data set that the current behavior fails on is: http://sites.skoltech.ru/compvision/noimi/ (`deep-image-96-angular` in ann-benchmarks). Specifically `deep-image-96-angular` dataset in mapped memory has a size of `9990000 * 96 * 4` (docNum * dim * byteSizeOf(Float32)). As an int, this rolls over to `-458807296`, as a long: `3836160000`. So, this commit adds back the iterative batching, taking batch sizes near `Integer.MAX_VALUE` that are a multiple of `dim * byteSize`. -- 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-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org