mikemccand opened a new issue, #12916:
URL: https://github.com/apache/lucene/issues/12916
   ### Description
   
   There is an exciting [upstream (OpenJ9) comment 
here](https://github.com/eclipse-openj9/openj9/issues/18400#issuecomment-1846199023)
 (thank you @singh264), copied below:
   
   The intermittent assertion failure in 
[testSegmentCountOnFlushRandom](https://github.com/apache/lucene/blob/5e1e6c9e6818be115ff76010d5fc766758b21bbe/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterThreadsToSegments.java#L175)
 seems to have started after 
https://github.com/apache/lucene/commit/bae5b338ed93b352062e6feb8321945fbed11ca5
 was added in the lucene repo, and a solution to fix the intermittent assertion 
failure is to make the 
[DocumentsWriterPerThreadPool.getAndLock()](https://github.com/apache/lucene/blob/5e1e6c9e6818be115ff76010d5fc766758b21bbe/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java#L115)
 method synchronized as it seems to fix a race condition that occurs while 
multiple threads concurrently add documents to an index during the test.
   
   I have not looked closely yet ...
   
   ### Version and environment details
   
   _No response_


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