Uploaded image for project: 'OpenICF'
  1. OpenICF
  2. OPENICF-1555

Unit tests ConcurrentModificationException in Jenkins

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5.20.0
    • None
    • 1
    • IDM - 2021.3

    Description

      We saw ICF releases in Jenkins triggering ConcurrentModificationException s while running unit tests. Happens with calls to org.forgerock.openicf.framework.server.ConnectorServer#stop .

      Closer examination of ConnectorServer makes it look like we could improve its synchronization.

      example

      11:41:04  ConnectorKey( bundleName=testbundlev1 bundleVersion=1.0.0.0 connectorName=org.identityconnectors.testconnector.TstStatefulPoolableConnector )
      11:41:04  ConnectorKey( bundleName=testbundlev1 bundleVersion=1.0.0.0 connectorName=org.identityconnectors.testconnector.TstStatefulConnector )
      11:41:04  ConnectorKey( bundleName=testbundlev1 bundleVersion=1.0.0.0 connectorName=org.identityconnectors.testconnector.TstConnector )
      11:41:04  Feb 26, 2021 7:41:02 PM org.glassfish.grizzly.http.server.NetworkListener shutdownNow
      11:41:04  INFO: Stopped listener bound to [0.0.0.0:40075]
      11:41:04  Feb 26, 2021 7:41:02 PM org.glassfish.grizzly.http.server.NetworkListener shutdownNow
      11:41:04  INFO: Stopped listener bound to [0.0.0.0:37726]
      11:41:04  [ERROR] Tests run: 49, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 128.662 s <<< FAILURE! - in TestSuite
      11:41:04  [ERROR] afterTest(org.forgerock.openicf.framework.server.AsyncRemoteProxyConnectorInfoManagerTest)  Time elapsed: 0.533 s  <<< FAILURE!
      11:41:04  java.util.ConcurrentModificationException
      

      and

      10:52:46  Feb 26, 2021 6:52:46 PM org.glassfish.grizzly.http.server.NetworkListener shutdownNow
      10:52:46  INFO: Stopped listener bound to [0.0.0.0:36336]
      10:52:46  Feb 26, 2021 6:52:46 PM org.glassfish.grizzly.http.server.NetworkListener shutdownNow
      10:52:46  INFO: Stopped listener bound to [0.0.0.0:42127]
      10:52:46  Grizzly Server Stopped
      10:52:46  Feb 26, 2021 6:52:46 PM org.glassfish.grizzly.http.server.NetworkListener shutdownNow
      10:52:46  INFO: Stopped listener bound to [0.0.0.0:41911]
      10:52:46  Feb 26, 2021 6:52:46 PM org.glassfish.grizzly.http.server.NetworkListener shutdownNow
      10:52:46  INFO: Stopped listener bound to [0.0.0.0:40601]
      10:52:46  [ERROR] Tests run: 48, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 123.269 s <<< FAILURE! - in TestSuite
      10:52:46  [ERROR] stopServer(org.forgerock.openicf.framework.server.AsyncRemotePlainConnectorInfoManagerTest)  Time elapsed: 0.149 s  <<< FAILURE!
      10:52:46  java.util.ConcurrentModificationException
      

      Attachments

        Issue Links

          Activity

            People

              travis.haagen Travis Haagen [X] (Inactive)
              travis.haagen Travis Haagen [X] (Inactive)
              Son Nguyen Son Nguyen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: