[ https://issues.apache.org/jira/browse/HDFS-535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743425#action_12743425 ]
Tsz Wo (Nicholas), SZE commented on HDFS-535: --------------------------------------------- The assertion in line 887 failed. {noformat} junit.framework.AssertionFailedError: Failed to close file after cluster shutdown at org.apache.hadoop.hdfs.TestFileCreation.testFsCloseAfterClusterShutdown(TestFileCreation.java:887) {noformat} We may print out the exception for a better understanding the problem. See below {code} boolean hasException = false; try { out.close(); System.out.println("testFsCloseAfterClusterShutdown: Error here"); } catch (IOException e) { hasException = true; //print out the IOException e here. } assertTrue("Failed to close file after cluster shutdown", hasException); //line 887 System.out.println("testFsCloseAfterClusterShutdown successful"); {code} > TestFileCreation occasionally fails because of an exception in DataStreamer. > ---------------------------------------------------------------------------- > > Key: HDFS-535 > URL: https://issues.apache.org/jira/browse/HDFS-535 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs client, test > Affects Versions: 0.20.1 > Reporter: Konstantin Shvachko > Assignee: Konstantin Shvachko > Fix For: 0.21.0 > > Attachments: TestFileCreate.patch > > > One of test cases, namely {{testFsCloseAfterClusterShutdown()}}, of > {{TestFileCreation}} fails occasionally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.