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

Fix random unit test ProxyBackendTestCase#testDistributionWithPartitionsContainingNServersEach

    Details

    • Type: Bug
    • Status: Dev backlog
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.0.0
    • Fix Version/s: None
    • Component/s: proxy
    • Labels:
      None

      Description

      ProxyBackendTestCase.testDistributionWithPartitionsContainingNServersEach() randomly fails with:

      testDistributionWithPartitionsContainingNServersEach(org.opends.server.backends.ProxyBackendTestCase)  Time elapsed: 0.102 sec  <<< FAILURE!
      java.lang.RuntimeException: No Such Entry
      	at io.reactivex.internal.util.ExceptionHelper.wrapOrThrow(ExceptionHelper.java:45)
      	at io.reactivex.internal.observers.BlockingMultiObserver.blockingGet(BlockingMultiObserver.java:91)
      	at io.reactivex.Single.blockingGet(Single.java:2486)
      	at org.opends.server.backends.ProxyBackendTestCase.assertResponses(ProxyBackendTestCase.java:509)
      	at org.opends.server.backends.ProxyBackendTestCase.addThenReadEntryForDn(ProxyBackendTestCase.java:441)
      	at org.opends.server.backends.ProxyBackendTestCase.testDistributionWithPartitionsContainingNServersEach(ProxyBackendTestCase.java:266)
      Caused by: No Such Entry
      	at org.forgerock.opendj.ldap.LdapException.newLdapException(LdapException.java:246)
      	at org.forgerock.opendj.ldap.LdapClientImpl$Exchange.onNext(LdapClientImpl.java:710)
      	at org.forgerock.opendj.ldap.LdapClientImpl$Exchange.onNext(LdapClientImpl.java:624)
      	at org.forgerock.opendj.ldap.DemultiplexerImpl$DemultiplexedStream.tryOnNextFastPath(DemultiplexerImpl.java:432)
      	at org.forgerock.opendj.ldap.DemultiplexerImpl$DemultiplexedStream.onNextAndOptionallyComplete(DemultiplexerImpl.java:392)
      	at org.forgerock.opendj.ldap.DemultiplexerImpl.onNext(DemultiplexerImpl.java:162)
      	at io.reactivex.internal.operators.flowable.FlowableDoOnEach$DoOnEachSubscriber.onNext(FlowableDoOnEach.java:92)
          [...]
      	at java.lang.Thread.run(Thread.java:748)
      parameter[0]: 2
      parameter[1]: 4
      parameter[2]: 160
      

      Acceptance criteria

      This task can be closed once the randomness in this test has been identified and fixed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gaetan Gaetan Boismal
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: