ChrisHegarty opened a new pull request, #14109:
URL: https://github.com/apache/lucene/pull/14109

   This commit fixes a bug where by prefetch may select the wrong memory 
segment for multi-segment slices.
   
   The issue was discovered when debugging a large test scenario, where the 
index input was backed by several memory segments. When sliced, a multi-segment 
index input uses an offset into the initial memory segment. This offset should 
be added to the prefetch offset to determine the absolute offset. The 
unfortunate part is that the bounds checks need to either be moved to the 
subclasses, or somehow coerced to look at segment byteSizes rather than length. 
I found the former to be more straightforward.


-- 
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

Reply via email to