Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-831

Saga UT failed at LoadBalancedClusterMessageSenderTest on Windows environment

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: saga-0.2.0
    • Fix Version/s: pack-0.3.0
    • Component/s: Saga
    • Labels:
      None
    • Environment:
      Windows 7 or Windows Server 2008 R2

      Description

      UT will failed at : LoadBalancedClusterMessageSenderTest.stopSendingWhenClusterIsDown

      It seems this assert

      await().atMost(2, SECONDS).until(new Callable<Boolean>() {
          @Override
          public Boolean call() throws Exception

      {         return connected.get(8080).size() == 2 || connected.get(8090).size() == 2;     }

      });

      The  connected size will only be 1 not 2

      I had found out that GrpcCompensateStreamObserver don't trigger onError when simulate connection closed in this case so LoadBalancedClusterMessageSender can't take PushBackReconnectRunnable from pendingTasks in order to reconnect server, then the connected count will be only 1, then test case failed

       

        Attachments

          Activity

            People

            • Assignee:
              njiang Willem Jiang
              Reporter:
              zhengyangyong zheng yangyong
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: