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

TestPathData fails intermittently with JDK7

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.3, 2.0.2-alpha, 3.0.0-alpha1
    • Fix Version/s: 0.23.3, 2.0.2-alpha
    • Component/s: test
    • Labels:
    • Environment:

      Description

      Failed tests: testWithDirStringAndConf(org.apache.hadoop.fs.shell.TestPathData): checking exist
      testToFile(org.apache.hadoop.fs.shell.TestPathData): expected:<file:/tmp> but was:</data/md0/hadoop-common/hadoop-common-project/hadoop-common/target/test/data/testPD/d1>

      testWithStringAndConfForBuggyPath (which is declared last and therefore runs last with JDK6) overwrites the static variable testDir with file:///tmp. With JDK7, test methods run in an undefined order, and the other tests will fail if run after this one.

        Attachments

        1. HADOOP-8695.patch
          3 kB
          Trevor Robinson
        2. HADOOP-8695-2.patch
          5 kB
          Trevor Robinson

          Activity

            People

            • Assignee:
              scurrilous Trevor Robinson
              Reporter:
              scurrilous Trevor Robinson
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: