There is 1 comment.
 
 
XWiki Commons / cid:jira-generated-image-avatar-b38825e3-7ccc-4a26-a5fd-615060ed5936 XCOMMONS-2092 Reopened

Flickering test DefaultJobExecutorTest.matchingGroupPathAreBlockedPoolMultiSizeParentFirst

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-ae9cb60c-2f31-4cb5-839a-1aac66e0c0b8 Manuel Leduc on 30/Jun/26 17:45
 
-Note: I fail to reproduce the failure on 18.4.x/18.5.x+ (by running it until it fails on intellij, it's not failing after 1k+ executions) -
- I do reproduce on 16.10.x/17.10.x -
- Currently trying to investigate what changed, the tests themselves have not evolved much afaics.-

Update: I do reproduce on 18.x, it's just taking longer. The bug seems to be a real concurrency issue on ReadWriteSemaphore, but this is beyond my concurrency skills.
Possibly because lockWrite calls {{this.writeCounter.incrementAndGet()}} then {{this.semaphore.acquireUninterruptibly(this.readCounter.get() + 1)}} in a non-atomic way