Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4478 [Umbrella] : Track all the Test failures in YARN
  3. YARN-4543

TestNodeStatusUpdater.testStopReentrant fails + JUnit misusage

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • nodemanager
    • None
    • Reviewed

    Description

      TestNodeStatusUpdater.testStopReentrant:1269 expected:<0> but was:<1>

      https://github.com/apache/hadoop/blob/4ac6799d4a8b071e0d367c2d709e84d8ea06942d/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/TestNodeStatusUpdater.java#L1269

      The corresponding JUnit assertion code is:

      Assert.assertEquals(numCleanups.get(), 1);

      It seems that the 1st arg and the 2nd one should be swapped.

      Attachments

        1. 0001-YARN-4543.patch
          1 kB
          Rohith Sharma K S
        2. YARN-4543-1.patch
          2 kB
          Akihiro Suda

        Issue Links

          Activity

            People

              suda Akihiro Suda
              suda Akihiro Suda
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: