[ 
https://issues.apache.org/jira/browse/HDFS-4180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jing Zhao updated HDFS-4180:
----------------------------

    Attachment: HDFS-4180.b1.001.patch

The error is caused by the inconsistency between real exception msg and 
expected exception msg. A simple change can fix the error and the local 
TestFileCreation now passed.
                
> TestFileCreation fails in branch-1 but not branch-1.1
> -----------------------------------------------------
>
>                 Key: HDFS-4180
>                 URL: https://issues.apache.org/jira/browse/HDFS-4180
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>            Reporter: Tsz Wo (Nicholas), SZE
>         Attachments: HDFS-4180.b1.001.patch
>
>
> {noformat}
> Testcase: testFileCreation took 3.419 sec
>       Caused an ERROR
> java.io.IOException: Cannot create /test_dir; already exists as a directory
>       at 
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFileInternal(FSNamesystem.java:1374)
>       at 
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFile(FSNamesystem.java:1334)
>       ...
>       at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1387)
> org.apache.hadoop.ipc.RemoteException: java.io.IOException: Cannot create 
> /test_dir; already exists as a directory
>       at 
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFileInternal(FSNamesystem.java:1374)
>       ...
>       at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:443)
>       at 
> org.apache.hadoop.hdfs.TestFileCreation.checkFileCreation(TestFileCreation.java:249)
>       at 
> org.apache.hadoop.hdfs.TestFileCreation.testFileCreation(TestFileCreation.java:179)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to