Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-15516

RepoJsonStoreServiceTest not multi-thread safe

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.1.0
    • Component/s: _Testing
    • Labels:
    • Environment:
      Debian Linux 10
    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      1
    • Sprint:
      2020.13 - IDM

      Description

      have reason to believe that RepoJsonStoreServiceTest is not multi-thread safe. I frequently get

      [ERROR] Tests run: 9, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.784 s <<< FAILURE! - in org.forgerock.openidm.jsonstore.impl.RepoJsonStoreServiceTest
      [ERROR] deactivateThreadOutsideSleep(org.forgerock.openidm.jsonstore.impl.RepoJsonStoreServiceTest)  Time elapsed: 1.397 s  <<< FAILURE!
      java.lang.AssertionError: 
      Expecting:
       <true>
      to be equal to:
       <false>
      but was not.
      	at org.forgerock.openidm.jsonstore.impl.RepoJsonStoreServiceTest.deactivateThreadOutsideSleep(RepoJsonStoreServiceTest.java:178)
      

      when running mvn -T1C clean install. The tests passes when I remove -T1C from the command line.

      mvn -pl openidm-json-store \
       -T1C -Dtest=RepoJsonStoreServiceTest test
      

        Attachments

          Activity

            People

            • Assignee:
              travis.haagen Travis Haagen
              Reporter:
              brmiller Brendan Miller
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: