uschindler commented on issue #15068:
URL: https://github.com/apache/lucene/issues/15068#issuecomment-3212211734

   > Hi [@uschindler](https://github.com/uschindler), The fix makes sense and 
should solve our bug. Thanks so much for the help!
   > 
   > As for:
   > 
   > > In addition are you really sure that no other thread that maybe still 
getting stored fields after all other threads have released the searcher? 
RefrenceManager only ensures no new threads can aquire a searcher, but nothing 
prevents other threads from using an open searcher that might have been 
released!
   > 
   > The answer is no, I'm not sure. It is definitely possible we are doing 
something incorrect here, and I don't want to mislead the investigation. I will 
report back if I find solid evidence that there is an issue with 
`ReferenceManager` itself (and not our mis-use).
   
   You could configure MMapDir to disable grouping completely (see above with 
`dir.setGroupingFunction(MMapDirectory.NO_GROUPING)`). If you then test your 
code again in production, it should not hang on closing. Instead it might 
happen that searches running in parallel while you close throw 
`AlreadyClisedException`. But make sure to have high concurrency.


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