Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17769

Upgrade JUnit to 4.13.2

    XMLWordPrintableJSON

Details

    Description

      JUnit 4.13.1 has a bug that is reported in Junit issue-1652 Timeout ThreadGroups should not be destroyed

      After upgrading Junit to 4.13.1 in HADOOP-17602, TestBlockRecovery started to fail regularly in branch-3.x and branch-2.10.
      While investigating the failure in branch-2.10 HDFS-16072, I found out that the bug is the main reason TestBlockRecovery started to fail because the timeout of the Junit would try to close a ThreadGroup that has been already closed which throws the java.lang.IllegalThreadStateException.

      The bug has been fixed in Junit-4.13.2

      For branch-3.x, HDFS-15940 did not address the root cause of the problem. Eventually, Splitting the TestBlockRecovery hid the bug, but the upgrade needs to be done so that the problem does not show up in another unit test.

      Attachments

        Issue Links

          Activity

            People

              ahussein Ahmed Hussein
              ahussein Ahmed Hussein
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4.5h
                  4.5h