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

Siddharth Wagle reassigned HDDS-2926:
-------------------------------------

    Assignee: Siddharth Wagle

> Intermittent failure in TestRecon due to thread timing
> ------------------------------------------------------
>
>                 Key: HDDS-2926
>                 URL: https://issues.apache.org/jira/browse/HDDS-2926
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: test
>            Reporter: Attila Doroszlai
>            Assignee: Siddharth Wagle
>            Priority: Minor
>
> {{TestRecon}} uses {{Thread#sleep}} to wait for async task (OM snapshot fetch 
> from Recon) completion.  This can result in failure in case of bad timing:
> {code}
> 2020-01-22T07:28:21.5231608Z [ERROR] Tests run: 1, Failures: 1, Errors: 0, 
> Skipped: 0, Time elapsed: 45.857 s <<< FAILURE! - in 
> org.apache.hadoop.ozone.recon.TestRecon
> 2020-01-22T07:28:21.5236225Z [ERROR] 
> testReconServer(org.apache.hadoop.ozone.recon.TestRecon)  Time elapsed: 
> 10.269 s  <<< FAILURE!
> 2020-01-22T07:28:21.5237314Z java.lang.AssertionError: expected:<1> but 
> was:<0>
> ...
> 2020-01-22T07:28:21.5241907Z  at 
> org.apache.hadoop.ozone.recon.TestRecon.testReconServer(TestRecon.java:205)
> {code}
> {{GenericTestUtils#waitFor}} or similar solution should be preferred.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to