Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.23.3, 2.0.2-alpha, 3.0.0-alpha1
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.