You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2018/11/25 07:47:00 UTC

[jira] [Resolved] (SCB-831) Saga UT failed at LoadBalancedClusterMessageSenderTest on Windows environment

     [ https://issues.apache.org/jira/browse/SCB-831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved SCB-831.
------------------------------
    Resolution: Fixed

> Saga UT failed at LoadBalancedClusterMessageSenderTest on Windows environment
> -----------------------------------------------------------------------------
>
>                 Key: SCB-831
>                 URL: https://issues.apache.org/jira/browse/SCB-831
>             Project: Apache ServiceComb
>          Issue Type: Bug
>          Components: Saga
>    Affects Versions: saga-0.2.0
>         Environment: Windows 7 or Windows Server 2008 R2
>            Reporter: yangyongzheng
>            Assignee: Willem Jiang
>            Priority: Major
>             Fix For: saga-0.3.0
>
>
> 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
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)