Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6104

TestFsLimits#testDefaultMaxComponentLength Fails on branch-2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.4.0
    • None
    • None

    Description

      testDefaultMaxComponentLength fails intermittently with the following error

      java.lang.AssertionError: expected:<0> but was:<255>
      	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.hdfs.server.namenode.TestFsLimits.testDefaultMaxComponentLength(TestFsLimits.java:90)
      

      On doing some research, I found that this is actually a JDK7 issue.
      The test always fails when it runs after any test that runs addChildWithName() method

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mitdesai Mit Desai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: