[
https://issues.apache.org/jira/browse/HDFS-8412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14545314#comment-14545314
]
Uma Maheswara Rao G commented on HDFS-8412:
-------------------------------------------
{noformat}
Running org.apache.hadoop.fs.http.client.TestHttpFSFWithSWebhdfsFileSystem
Tests run: 46, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 42.801 sec <<<
FAILURE! - in org.apache.hadoop.fs.http.client.TestHttpFSFWithSWebhdfsFileSystem
testOperation[14](org.apache.hadoop.fs.http.client.TestHttpFSFWithSWebhdfsFileSy
stem) Time elapsed: 0.43 sec <<< ERROR!
java.io.IOException: Filesystem closed
at org.apache.hadoop.hdfs.DFSClient.checkOpen(DFSClient.java:458)
at org.apache.hadoop.hdfs.DFSClient.setReplication(DFSClient.java:1549)
at org.apache.hadoop.hdfs.DistributedFileSystem$9.doCall(DistributedFile
System.java:519)
at org.apache.hadoop.hdfs.DistributedFileSystem$9.doCall(DistributedFile
System.java:515)
at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkRes
olver.java:81)
at org.apache.hadoop.hdfs.DistributedFileSystem.setReplication(Distribut
edFileSystem.java:515)
at org.apache.hadoop.fs.http.client.BaseTestHttpFSWith.testSetReplicatio
n(BaseTestHttpFSWith.java:469)
at org.apache.hadoop.fs.http.client.BaseTestHttpFSWith.operation(BaseTes
tHttpFSWith.java:865)
at org.apache.hadoop.fs.http.client.BaseTestHttpFSWith.testOperation(Bas
eTestHttpFSWith.java:917)
{noformat}
> Fix the test failures in HTTPFS
> -------------------------------
>
> Key: HDFS-8412
> URL: https://issues.apache.org/jira/browse/HDFS-8412
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: fs
> Reporter: Uma Maheswara Rao G
> Assignee: Uma Maheswara Rao G
>
> Currently 2 HTTFS test cases failing due to filesystem open check in fs
> operations
> This is the JIRA fix these failures.
> Failure seems like
> test case is closing fs first and then doing operation. Ideally such test
> could pas earlier as dfsClient was just contacting with NN directly. But that
> particular closed client will not be useful for any other ops like
> read/write. So, usage should be corrected here IMO.
> {code}
> fs.close();
> fs.setReplication(path, (short) 2);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)