Hadoop Common
  1. Hadoop Common
  2. HADOOP-8695

TestPathData fails intermittently with JDK7

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.3, 3.0.0, 2.0.2-alpha
    • 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.

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

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development