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

   > Thank you very much @rmuir, @uschindler. Yes, there are many threads 
running at the same time and we have a managed reference count to close the 
reader, maybe there are some issues when increase or decrease the reference 
count. I will try to investigate the root cause in application. Besides, 
@uschindler could you please provide the related pull request for this issue? 
We did not plan to upgrade Lucene recently, I wonder to know if we can resolve 
this issue by cherry pick the fix and upgrading Java according? Many thanks!
   
   You can't backport this as this is a completely different implementation 
which does not have the problem.
   
   Generally you should fix your code because the other implementation wouldn't 
solve the original issue, the queries would still fail, but throw 
AlreadyClosedException. If that's better?
   
   If you are interested, see here: https://pretalx.com/bbuzz22/talk/WYC9ZB/
   
   There's no single pull request and it has different implementations for each 
java version. It also requires MRJAR files.
   
   To help you finding your bug, use the suggestions provided by Robert: change 
directory implementation to NIOFSDirectory and test (be aware that it will be a 
lot slower depending on usage) and then watch for AlreadyClosedException and 
find the root cause.


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