You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2020/01/29 07:14:00 UTC
[jira] [Resolved] (HDDS-2926) Intermittent failure in TestRecon due
to thread timing
[ https://issues.apache.org/jira/browse/HDDS-2926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Attila Doroszlai resolved HDDS-2926.
------------------------------------
Fix Version/s: 0.5.0
Resolution: Fixed
Thanks [~swagle] for the fix and [~avijayan] for the review.
> 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
> Labels: pull-request-available
> Fix For: 0.5.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {{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: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org