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

[jira] [Moved] (MAPREDUCE-7459) Sort strings to fix flaky test

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

Steve Loughran moved HADOOP-18947 to MAPREDUCE-7459:
----------------------------------------------------

          Component/s: test
                           (was: test)
        Fix Version/s: 3.3.6
                           (was: 3.3.6)
                  Key: MAPREDUCE-7459  (was: HADOOP-18947)
    Affects Version/s: 3.3.6
                           (was: 3.3.6)
              Project: Hadoop Map/Reduce  (was: Hadoop Common)

> Sort strings to fix flaky test
> ------------------------------
>
>                 Key: MAPREDUCE-7459
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-7459
>             Project: Hadoop Map/Reduce
>          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: mapreduce-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: mapreduce-issues-help@hadoop.apache.org