[ 
https://issues.apache.org/jira/browse/HDDS-1332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16799804#comment-16799804
 ] 

Arpit Agarwal commented on HDDS-1332:
-------------------------------------

By the way this assertion is not why the test appears to be failing in Jenkins. 
In Jenkins the following condition is never satisfied:

{code}
      GenericTestUtils.waitFor(() -> connectionManager.getValues().size() == 1,
          1000, 30000);
{code}

Instead of disabling the test we can also print some more information to see 
why it is failing. E.g. print the value of connectionManager.getValues() every 
time the check is executed.

> Skip flaky test - testStartStopDatanodeStateMachine
> ---------------------------------------------------
>
>                 Key: HDDS-1332
>                 URL: https://issues.apache.org/jira/browse/HDDS-1332
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>            Reporter: Arpit Agarwal
>            Priority: Major
>
> testStartStopDatanodeStateMachine fails frequently in Jenkins. It also seems 
> to have a timing issue which may be different from the Jenkins failure.
> E.g. If I add a 10 second sleep as below I can get the test to fail 100%.
> {code}
> @@ -163,6 +163,7 @@ public void testStartStopDatanodeStateMachine() throws 
> IOException,
>      try (DatanodeStateMachine stateMachine =
>          new DatanodeStateMachine(getNewDatanodeDetails(), conf, null)) {
>        stateMachine.startDaemon();
> +      Thread.sleep(10_000L);
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to