Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-1873

TestDistributedShell#testDSShell fails when the test cases are out of order

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.0, 3.0.0-alpha1
    • 2.4.0
    • None
    • Reviewed

    Description

      testDSShell fails when the tests are run in random order. I see a cleanup issue here.

      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 72.222 sec <<< FAILURE! - in org.apache.hadoop.yarn.applications.distributedshell.TestDistributedShell
      testOrder(org.apache.hadoop.yarn.applications.distributedshell.TestDistributedShell)  Time elapsed: 44.127 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<1> but was:<6>
      	at org.junit.Assert.fail(Assert.java:93)
      	at org.junit.Assert.failNotEquals(Assert.java:647)
      	at org.junit.Assert.assertEquals(Assert.java:128)
      	at org.junit.Assert.assertEquals(Assert.java:472)
      	at org.junit.Assert.assertEquals(Assert.java:456)
      	at org.apache.hadoop.yarn.applications.distributedshell.TestDistributedShell.testDSShell(TestDistributedShell.java:204)
      	at org.apache.hadoop.yarn.applications.distributedshell.TestDistributedShell.testOrder(TestDistributedShell.java:134)
      
      
      Results :
      
      Failed tests: 
        TestDistributedShell.testOrder:134->testDSShell:204 expected:<1> but was:<6>
      

      The Line numbers will be little deviated because I was trying to reproduce the error by running the tests in specific order. But the Line that causes the assert fail is Assert.assertEquals(1, entitiesAttempts.getEntities().size());

      Attachments

        1. YARN-1873.patch
          2 kB
          Mit Desai
        2. YARN-1873.patch
          2 kB
          Mit Desai
        3. YARN-1873.patch
          2 kB
          Mit Desai

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mitdesai Mit Desai Assign to me
            mitdesai Mit Desai
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment