Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-2092

Possible race condition in ReadWriteSemaphore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 18.9.0-rc-1
    • 12.10
    • Job
    • Unknown
    • N/A
    • N/A
    • org.xwiki.job.internal.DefaultJobExecutorTest#matchingGroupPathAreBlockedPoolMultiSizeParentFirst

    Description

      The race condition was found due to a rare flickering of DefaultJobExecutorTest. It is failing from time to time with that stacktrace:

      org.opentest4j.AssertionFailedError: Job never reached expected state [WAITING]. Still [null] after 100 milliseconds
      	at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:39)
      	at org.junit.jupiter.api.Assertions.fail(Assertions.java:117)
      	at org.xwiki.job.internal.DefaultJobExecutorTest.waitJobState(DefaultJobExecutorTest.java:110)
      	at org.xwiki.job.internal.DefaultJobExecutorTest.waitJobWaiting(DefaultJobExecutorTest.java:83)
      	at org.xwiki.job.internal.DefaultJobExecutorTest.matchingGroupPathAreBlockedPoolMultiSizeParentFirst(DefaultJobExecutorTest.java:285)
      

      Attachments

        Activity

          People

            surli Simon Urli
            surli Simon Urli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: