[ 
https://issues.apache.org/jira/browse/HADOOP-8695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13436834#comment-13436834
 ] 

Thomas Graves commented on HADOOP-8695:
---------------------------------------

I still see intermittent test failures when running it multiple times. I think 
there are other assumptions with test order. For instance testRelativeGlobBack 
sets the working dir.

Failed tests:   
testWithDirStringAndConf(org.apache.hadoop.fs.shell.TestPathData): checking 
exist

Another run:

Failed tests:   
testWithDirStringAndConf(org.apache.hadoop.fs.shell.TestPathData): checking 
exist
  testCwdContents(org.apache.hadoop.fs.shell.TestPathData): expected:<0:<[d1>, 
1:<d]2>> but was:<0:<[f1>, 1:<f1.1>, 2:<f]2>>
  testToFile(org.apache.hadoop.fs.shell.TestPathData): 
expected:</home/tgraves/8695/hadoop-common-project/hadoop-common/target/test/data/testPD>
 but 
was:</home/tgraves/8695/hadoop-common-project/hadoop-common/target/test/data/testPD/d1>

Tests in error:
  testUnqualifiedUriContents(org.apache.hadoop.fs.shell.TestPathData): `d1': No 
such file or directory
  testQualifiedUriContents(org.apache.hadoop.fs.shell.TestPathData): 
`file:/home/tgraves/8695/hadoop-common-project/hadoop-common/target/test/data/testPD/d1/d1':
 No such file or directory


                
> TestPathData fails intermittently with JDK7
> -------------------------------------------
>
>                 Key: HADOOP-8695
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8695
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.23.3, 3.0.0, 2.2.0-alpha
>         Environment: Apache Maven 3.0.4
> Maven home: /usr/share/maven
> Java version: 1.7.0_04, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/jdk1.7.0_04/jre
> Default locale: en_US, platform encoding: ISO-8859-1
> OS name: "linux", version: "3.2.0-25-generic", arch: "amd64", family: "unix"
>            Reporter: Trevor Robinson
>            Assignee: Trevor Robinson
>              Labels: java7
>         Attachments: HADOOP-8695.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to