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

Daniel Darabos commented on HADOOP-10510:
-----------------------------------------

For another data point here's mine.

{code}
$ git clone https://github.com/apache/hadoop-common.git
Cloning into 'hadoop-common'...
remote: Reusing existing pack: 581936, done.
remote: Counting objects: 281, done.
remote: Compressing objects: 100% (221/221), done.
remote: Total 582217 (delta 90), reused 27 (delta 7)
Receiving objects: 100% (582217/582217), 326.30 MiB | 3.42 MiB/s, done.
Resolving deltas: 100% (304783/304783), done.
Checking connectivity... done.
$ cd hadoop-common/
$ mvn package
[...lot of stuff...]
Running org.apache.hadoop.fs.TestSymlinkLocalFSFileContext
Tests run: 61, Failures: 12, Errors: 3, Skipped: 3, Time elapsed: 1.7 sec <<< 
FAILURE! - in org.apache.hadoop.fs.TestSymlinkLocalFSFileContext
testDanglingLink(org.apache.hadoop.fs.TestSymlinkLocalFSFileContext)  Time 
elapsed: 0.034 sec  <<< ERROR!
java.io.IOException: Path 
file:/home/darabos/c/hadoop-common/hadoop-common-project/hadoop-common/target/test/data/Ls5xoGQ7Nz/test1/linkToFile
 is not a symbolic link
        at org.apache.hadoop.fs.FileStatus.getSymlink(FileStatus.java:251)
        at 
org.apache.hadoop.fs.TestSymlinkLocalFS.testDanglingLink(TestSymlinkLocalFS.java:163)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        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)

testGetLinkStatusPartQualTarget(org.apache.hadoop.fs.TestSymlinkLocalFSFileContext)
  Time elapsed: 0.032 sec  <<< ERROR!
java.io.IOException: Path 
file:/home/darabos/c/hadoop-common/hadoop-common-project/hadoop-common/target/test/data/Ls5xoGQ7Nz/test1/linkToFile
 is not a symbolic link
        at org.apache.hadoop.fs.FileStatus.getSymlink(FileStatus.java:251)
        at 
org.apache.hadoop.fs.TestSymlinkLocalFS.testGetLinkStatusPartQualTarget(TestSymlinkLocalFS.java:201)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        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)

testCreateLinkUsingRelPaths(org.apache.hadoop.fs.TestSymlinkLocalFSFileContext) 
 Time elapsed: 0.028 sec  <<< FAILURE!
java.lang.AssertionError: null
        at org.junit.Assert.fail(Assert.java:86)
        at org.junit.Assert.assertTrue(Assert.java:41)
        at org.junit.Assert.assertTrue(Assert.java:52)
        at 
org.apache.hadoop.fs.SymlinkBaseTest.checkLink(SymlinkBaseTest.java:377)
        at 
org.apache.hadoop.fs.SymlinkBaseTest.testCreateLinkUsingRelPaths(SymlinkBaseTest.java:443)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        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)
[...more errors and failures...]
Running org.apache.hadoop.fs.TestSymlinkLocalFSFileSystem
Tests run: 61, Failures: 12, Errors: 3, Skipped: 7, Time elapsed: 1.553 sec <<< 
FAILURE! - in org.apache.hadoop.fs.TestSymlinkLocalFSFileSystem
[...stack traces here as well...]
Results :

Failed tests: 
  
TestSymlinkLocalFSFileContext>SymlinkBaseTest.testCreateLinkUsingRelPaths:443->SymlinkBaseTest.checkLink:377
 null
  
TestSymlinkLocalFSFileContext>SymlinkBaseTest.testCreateLinkUsingFullyQualPaths:499->SymlinkBaseTest.checkLink:377
 null
  
TestSymlinkLocalFSFileContext>SymlinkBaseTest.testRenameSymlinkToExistingFile:1059
 null
  
TestSymlinkLocalFSFileContext>TestSymlinkLocalFS.testStatDanglingLink:115->SymlinkBaseTest.testStatDanglingLink:297
 null
  
TestSymlinkLocalFSFileContext>SymlinkBaseTest.testRenameSymlinkNonExistantDest:1032
 null
  TestSymlinkLocalFSFileContext>SymlinkBaseTest.testCreateLinkToDirectory:623 
null
  TestSymlinkLocalFSFileContext>SymlinkBaseTest.testStatLinkToDir:282 null
  TestSymlinkLocalFSFileContext>SymlinkBaseTest.testCreateLinkViaLink:675 null
  TestSymlinkLocalFSFileContext>SymlinkBaseTest.testStatLinkToFile:240 null
  
TestSymlinkLocalFSFileContext>SymlinkBaseTest.testCreateLinkUsingAbsPaths:468->SymlinkBaseTest.checkLink:377
 null
  TestSymlinkLocalFSFileContext>SymlinkBaseTest.testRenameSymlinkViaSymlink:893 
null
  TestSymlinkLocalFSFileContext>SymlinkBaseTest.testRenameSymlink:1130 null
  
TestSymlinkLocalFSFileSystem>SymlinkBaseTest.testCreateLinkUsingRelPaths:443->SymlinkBaseTest.checkLink:377
 null
  
TestSymlinkLocalFSFileSystem>SymlinkBaseTest.testCreateLinkUsingFullyQualPaths:499->SymlinkBaseTest.checkLink:377
 null
  
TestSymlinkLocalFSFileSystem>SymlinkBaseTest.testRenameSymlinkToExistingFile:1059
 null
  
TestSymlinkLocalFSFileSystem>TestSymlinkLocalFS.testStatDanglingLink:115->SymlinkBaseTest.testStatDanglingLink:297
 null
  
TestSymlinkLocalFSFileSystem>SymlinkBaseTest.testRenameSymlinkNonExistantDest:1032
 null
  TestSymlinkLocalFSFileSystem>SymlinkBaseTest.testCreateLinkToDirectory:623 
null
  TestSymlinkLocalFSFileSystem>SymlinkBaseTest.testStatLinkToDir:282 null
  TestSymlinkLocalFSFileSystem>SymlinkBaseTest.testCreateLinkViaLink:675 null
  TestSymlinkLocalFSFileSystem>SymlinkBaseTest.testStatLinkToFile:240 null
  
TestSymlinkLocalFSFileSystem>SymlinkBaseTest.testCreateLinkUsingAbsPaths:468->SymlinkBaseTest.checkLink:377
 null
  TestSymlinkLocalFSFileSystem>SymlinkBaseTest.testRenameSymlinkViaSymlink:893 
null
  TestSymlinkLocalFSFileSystem>SymlinkBaseTest.testRenameSymlink:1130 null

Tests in error: 
  TestSymlinkLocalFSFileContext>TestSymlinkLocalFS.testDanglingLink:163 » IO 
Pat...
  
TestSymlinkLocalFSFileContext>TestSymlinkLocalFS.testGetLinkStatusPartQualTarget:201
 » IO
  
TestSymlinkLocalFSFileContext>SymlinkBaseTest.testCreateLinkToDotDotPrefix:818 
» IO
  TestSymlinkLocalFSFileSystem>TestSymlinkLocalFS.testDanglingLink:163 » IO 
Path...
  
TestSymlinkLocalFSFileSystem>TestSymlinkLocalFS.testGetLinkStatusPartQualTarget:201
 » IO
  TestSymlinkLocalFSFileSystem>SymlinkBaseTest.testCreateLinkToDotDotPrefix:818 
» IO

Tests run: 2369, Failures: 24, Errors: 6, Skipped: 106
{code}

OS and JVM:

{code}
$ uname -a
Linux ramhegy 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 
x86_64 x86_64 x86_64 GNU/Linux
$ java -version
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.6) (7u51-2.4.6-1ubuntu4)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
{code}

> TestSymlinkLocalFSFileContext tests are failing
> -----------------------------------------------
>
>                 Key: HADOOP-10510
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10510
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>         Environment: Linux
>            Reporter: Daniel Darabos
>         Attachments: TestSymlinkLocalFSFileContext-output.txt, 
> TestSymlinkLocalFSFileContext.txt
>
>
> Test results:
> https://gist.github.com/oza/9965197
> This was mentioned on hadoop-common-dev:
> http://mail-archives.apache.org/mod_mbox/hadoop-common-dev/201404.mbox/%3CCAAD07OKRSmx9VSjmfk1YxyBmnFM8mwZSp%3DizP8yKKwoXYvn3Qg%40mail.gmail.com%3E
> Can you suggest a workaround in the meantime? I'd like to send a pull request 
> for an unrelated bug, but these failures mean I cannot build hadoop-common to 
> test my fix. Thanks.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to