romseygeek commented on PR #16970:
URL: https://github.com/apache/lucene/pull/16970#issuecomment-6629037645

   SortingStoredFieldsConsumer explicitly doesn't open a merge reader, so I 
think that should be OK?  And it's the only place that actually uses this 
single-thread IOContext, so far at least.
   
   I think it is worth confining the data files too.  Rather than using `union` 
to combine things, how about we add an `overrideHints()` method that replaces 
hints of the same type, but keeps all the other ones?  That way an enclosing 
context that knows it will be single-threaded can pass in 
`RANDOM_READONCE_SINGLETHREAD` and internal users can override things like the 
FileAccessHint without having to care about threading.  In which case, we 
should probably rename it to `READONCE_SINGLETHREAD` as it can be happily used 
for sequential or random access.


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