uschindler commented on PR #13196:
URL: https://github.com/apache/lucene/pull/13196#issuecomment-2019973001

   > > The test added by @ChrisHegarty sometimes fails on windows: It does not 
close the file it opened for random access testing, so the directory can't be 
deleted. Will fix this in a separate commit.
   > 
   > Oops, sorry about this. Thankfully the fix was straightforward.
   
   About this test and the quite large 8 MB buffer (see 
https://github.com/apache/lucene/pull/13196/files#diff-ebee319f3691cdb1627e5e9b1dfbdd0c266b1da28ccf0b2a9218dee1d34ff2b7R103):
   
   Is this some limit inside the kernel to trigger something? For this test, we 
call posix_madvise() always.
   
   Maybe there was a misunderstanding: We only do not call madvise, if the 
chunk size is too small (< 2 MiB), but by default the chunk size is 16 
Gigabytes, except for tests we always call madvise. Theres only one special 
case: If the file is zero length, then we can't call 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-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