You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/10/22 17:02:00 UTC

[jira] [Updated] (HADOOP-18947) Sort strings to fix flaky test

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

ASF GitHub Bot updated HADOOP-18947:
------------------------------------
    Labels: pull-request-available  (was: )

> Sort strings to fix flaky test
> ------------------------------
>
>                 Key: HADOOP-18947
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18947
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 3.3.6
>         Environment: Java version: openjdk 11.0.20.1
> Maven version: Apache Maven 3.6.3
>            Reporter: Rajiv Ramachandran
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 3.3.6
>
>
> The test {{_org.apache.hadoop.mapreduce.jobhistory.TestHistoryViewerPrinter#testHumanPrinterAll_}}
> can fail due to flakiness. These flakiness occurs because the test utilizes Hashmaps values and converts the values to string to perform the comparision and the order of the objects returned may not be necessarily maintained. 
> The stack trace is as follows:
> testHumanPrinterAll(org.apache.hadoop.mapreduce.jobhistory.TestHistoryViewerPrinter)  Time elapsed: 0.297 s  <<< FAILURE!
> org.junit.ComparisonFailure:
> expected:<...8501754_0001_m_00000[7    6-Oct-2011 19:15:09    6-Oct-2011 19:15:16 (7sec)
> SUCCEEDED MAP task list for job_1317928501754_0001
> TaskId        StartTime    FinishTime    Error    InputSplits
> ====================================================
> task_1317928501754_0001_m_000006    6-Oct-2011 19:15:08    6-Oct-2011 19:15:14 (6sec)
> ...
> /tasklog?attemptid=attempt_1317928501754_0001_m_000003]_1
> REDUCE task list...> but was:<...8501754_0001_m_00000[5    6-Oct-2011 19:15:07    6-Oct-2011 19:15:12 (5sec)
> SUCCEEDED MAP task list for job_1317928501754_0001
> TaskId        StartTime    FinishTime    Error    InputSplits
> ====================================================
> task_1317928501754_0001_m_000006    6-Oct-2011 19:15:08    6-Oct-2011 19:15:14 (6sec)
> SUCCEEDED MAP task list for job_1317928501754_0001
> TaskId        StartTime    FinishTime    Error    InputSplits
> ====================================================
> task_1317928501754_0001_m_000004    6-Oct-2011 19:15:06    6-Oct-2011 19:15:10 (4sec)
> SUCCEEDED MAP task list for job_1317928501754_0001
> TaskId        StartTime    FinishTime    Error    InputSplits
> ====================================================
> task_1317928501754_0001_m_000007    6-Oct-2011 19:15:09    6-Oct-2011 19:15:16 (7sec)
> ...
> /tasklog?attemptid=attempt_1317928501754_0001_m_000006]_1



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org