Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-4521

NettyMessagingManagerTest sometime fails

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      87dc8b0b55e2a2586fcff63adf0b10785999a9bc

    • Story Points:
      3
    • Epic Link:

      Description

      org.onosproject.store.cluster.messaging.impl.NettyMessagingManager.sendAndReceive(Endpoint, String, byte[], Executor)
      

      expects Callback to be executed on specified Executor, but there seems to be some times it is not executed by other thread.

      FAIL     10.0s  2 Passed   0 Skipped   1 Failed   org.onosproject.store.cluster.messaging.impl.NettyMessagingManagerTest
      FAILURE org.onosproject.store.cluster.messaging.impl.NettyMessagingManagerTest testSendAndReceiveWithExecutor: expected:<[completion-thread]> but was:<[nioEventLoopGroup-3-1]>
      org.junit.ComparisonFailure: expected:<[completion-thread]> but was:<[nioEventLoopGroup-3-1]>
      	at org.junit.Assert.assertEquals(Assert.java:115)
      	at org.junit.Assert.assertEquals(Assert.java:144)
      	at org.onosproject.store.cluster.messaging.impl.NettyMessagingManagerTest.testSendAndReceiveWithExecutor(NettyMessagingManagerTest.java:152)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at com.facebook.buck.testrunner.SameThreadFailOnTimeout$1.call(SameThreadFailOnTimeout.java:45)
      	at com.facebook.buck.testrunner.SameThreadFailOnTimeout$1.call(SameThreadFailOnTimeout.java:41)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              y-higuchi Yuta Higuchi
              Reporter:
              y-higuchi Yuta Higuchi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: