[ https://issues.apache.org/jira/browse/HDFS-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14067812#comment-14067812 ]
Yongjun Zhang commented on HDFS-6707: ------------------------------------- https://builds.apache.org/job/PreCommit-HDFS-Build/7392//testReport/ and https://builds.apache.org/job/PreCommit-HDFS-Build/7405//testReport/ were results from two runs on the same host Slave H4 (Build slave for Hadoop project builds : asf904.gq1.ygridcore.net). The latter one is with patch 004, which resolved all symlinks failures reported in run 7392. The root cause is that on this kind of host, the command {{stat -c "%s,%F,%Y,%X,%a,%U,%G,%N" target}} gives {code} 6,symbolic link,6,1373584236,1373584236,lrwxrwxrwx,andrew,andrew,'link' -> 'target' {code} kind of result instead of {code} 6,symbolic link,6,1373584236,1373584236,lrwxrwxrwx,andrew,andrew,`link' -> `target' {code}. The former is not handled currently. The patch is introduced to handle both. Since this fix is to fix existing tests, I didn't try to introduce additional tests. Hi [~cmccabe], would you please help review again? thanks. > Intermittent failure of Symlink tests > TestSymlinkLocalFSFileContext,TestSymlinkLocalFSFileSystem > ------------------------------------------------------------------------------------------------- > > Key: HDFS-6707 > URL: https://issues.apache.org/jira/browse/HDFS-6707 > Project: Hadoop HDFS > Issue Type: Bug > Components: symlinks > Affects Versions: 2.5.0 > Reporter: Yongjun Zhang > Assignee: Yongjun Zhang > Attachments: HDFS-6707.001.patch, HDFS-6707.002.dbg.patch, > HDFS-6707.003.dbg.patch, HDFS-6707.004.patch > > > Symlink tests failure happened from time to time, > https://builds.apache.org/job/PreCommit-HDFS-Build/7383//testReport/ > https://builds.apache.org/job/PreCommit-HDFS-Build/7376/testReport/ > {code} > Failed > org.apache.hadoop.fs.TestSymlinkLocalFSFileContext.testDanglingLink > Failing for the past 1 build (Since Failed#7376 ) > Took 83 ms. > Error Message > Path > file:/home/jenkins/jenkins-slave/workspace/PreCommit-HDFS-Build/trunk/hadoop-common-project/hadoop-common/target/test/data/RtGBheUh4y/test1/linkToFile > is not a symbolic link > Stacktrace > java.io.IOException: Path > file:/home/jenkins/jenkins-slave/workspace/PreCommit-HDFS-Build/trunk/hadoop-common-project/hadoop-common/target/test/data/RtGBheUh4y/test1/linkToFile > is not a symbolic link > at org.apache.hadoop.fs.FileStatus.getSymlink(FileStatus.java:266) > at > org.apache.hadoop.fs.TestSymlinkLocalFS.testDanglingLink(TestSymlinkLocalFS.java:163) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) > at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) > at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) > at > org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) > at > org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74) > Standard Output > 2014-07-17 23:31:37,770 WARN fs.FileUtil (FileUtil.java:symLink(829)) - > Command 'ln -s > /home/jenkins/jenkins-slave/workspace/PreCommit-HDFS-Build/trunk/hadoop-common-project/hadoop-common/target/test/data/RtGBheUh4y/test1/file > > /home/jenkins/jenkins-slave/workspace/PreCommit-HDFS-Build/trunk/hadoop-common-project/hadoop-common/target/test/data/RtGBheUh4y/test2/linkToFile' > failed 1 with: ln: failed to create symbolic link > '/home/jenkins/jenkins-slave/workspace/PreCommit-HDFS-Build/trunk/hadoop-common-project/hadoop-common/target/test/data/RtGBheUh4y/test2/linkToFile': > No such file or directory > 2014-07-17 23:31:38,109 WARN fs.FileUtil (FileUtil.java:symLink(829)) - > Command 'ln -s > /home/jenkins/jenkins-slave/workspace/PreCommit-HDFS-Build/trunk/hadoop-common-project/hadoop-common/target/test/data/RtGBheUh4y/test1/file > > /home/jenkins/jenkins-slave/workspace/PreCommit-HDFS-Build/trunk/hadoop-common-project/hadoop-common/target/test/data/RtGBheUh4y/test1/linkToFile' > failed 1 with: ln: failed to create symbolic link > '/home/jenkins/jenkins-slave/workspace/PreCommit-HDFS-Build/trunk/hadoop-common-project/hadoop-common/target/test/data/RtGBheUh4y/test1/linkToFile': > File exists > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)