Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-3047

Fix PluggableBackendImplTestCase random failures

    Details

    • Type: Task
    • Status: Done
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.5.0
    • Fix Version/s: 6.0.0
    • Component/s: backends
    • Labels:
      None

      Description

      All subclasses of PluggableBackendImplTestCase are seeing random failures for the test methods testHasSubordinates() and testUtilityAPIs() in continuous integration.

      Since this is happening with a probability higher than 3 out of 4 builds, it is becoming very problematic.

      Here are all the affected test classes:

      • JETestCase
      • PDBTestCase
      • EncryptedJETestCase
      • EncryptedPDBTestCase

      For these 4 classes, testHasSubordinates() and testUtilityAPIs() are failing with the same error messages:

      testHasSubordinates():

      "Failure Cause:  java.lang.AssertionError: Wrong DIT count. expected:<16> but was:<3>
          org.testng.Assert.fail(Assert.java:89)
          org.testng.Assert.failNotEquals(Assert.java:480)
          org.testng.Assert.assertEquals(Assert.java:118)
          org.testng.Assert.assertEquals(Assert.java:260)
          org.opends.server.backends.pluggable.PluggableBackendImplTestCase.testHasSubordinates(PluggableBackendImplTestCase.java:652)"
      

      testUtilityAPIs() :

      "Failure Cause:  java.lang.AssertionError: expected:<16> but was:<3>
          org.testng.Assert.fail(Assert.java:89)
          org.testng.Assert.failNotEquals(Assert.java:480)
          org.testng.Assert.assertEquals(Assert.java:118)
          org.testng.Assert.assertEquals(Assert.java:260)
          org.testng.Assert.assertEquals(Assert.java:270)
          org.opends.server.backends.pluggable.PluggableBackendImplTestCase.testUtilityAPIs(PluggableBackendImplTestCase.java:623)"
      

        Attachments

          Activity

            People

            • Assignee:
              matthew Matthew Swift
              Reporter:
              JnRouvignac Jean-Noël Rouvignac
              Dev Assignee:
              Matthew Swift
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: