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

   Unfortunately the solution in #12707 was not working well with concurrency. 
The is alive status of `MemorySegment.Scope` may be stale. In that case the 
`IllegalStateException` was catched, but the confirmation using `isAlive()` did 
not work, so the original `IllegalStateException` was rethrown instead of the 
required `AlreadyClosedException`.
   
   This PR reverts #12707 and falls back to the naive approach by checking 
exception message for "closed". I am in contact with @mcimadamore to find a 
better solution to confirm the closed status without relying on Exception 
message. 


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