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

   When writing stored fields, SortingStoredFieldsConsumer uses temporary files 
to receive sorted values.  These are currently opened using an IOContext that 
does not contain the ReadOnce hint, meaning that MMapDirectory will open them 
using a shared arena, even though this is a temp file that is only read via a 
single thread.  Closing the tmp file will also close the shared arena, which 
needs to check every other JVM thread to ensure that nothing else is using it.
   
   This adds a new IOContext for random, non-shared access, and uses it in 
SortingStoredFieldsConsumer and SortingTermVectorsConsumer.  The compressing 
codec's FieldsIndexReader combines its own hints using union rather than 
withHints() so that it doesn't overwrite read-once directives from the caller.


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

Reply via email to