ChrisHegarty commented on code in PR #13570: URL: https://github.com/apache/lucene/pull/13570#discussion_r1684456806
########## lucene/core/src/java21/org/apache/lucene/store/RefCountedSharedArena.java: ########## @@ -47,9 +48,12 @@ boolean acquire() { int value; while (true) { value = state.get(); - if (value < OPEN) { + if (value >= LIMIT) { Review Comment: Yeah, I agree. It does help with a pathological test case, but that is not representative of the case we're concerned with. Lifetime max it is then. -- 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