[ https://issues.apache.org/jira/browse/HDFS-3948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jing Zhao updated HDFS-3948: ---------------------------- Attachment: HDFS-3948.001.patch Initial patch to fix the testcase. Because webhdfs does not support hflush, it is difficult to avoid the race between webhdfs@DN's writing and NN's shutdown. Thus in this patch, I close the corresponding FSDataOutputStream (instead of calling its hflush) when the testcase is run for webhdfs. > TestWebHDFS#testNamenodeRestart is racy > ---------------------------------------- > > Key: HDFS-3948 > URL: https://issues.apache.org/jira/browse/HDFS-3948 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 2.0.0-alpha > Reporter: Eli Collins > Assignee: Jing Zhao > Attachments: HDFS-3948.001.patch, > HDFS-3948-regenerate-exception.002.patch, HDFS-3948-regenerate-exception.patch > > > After fixing HDFS-3936 I noticed that TestWebHDFS#testNamenodeRestart fails > when looping it, on my system it takes about 40 runs. WebHdfsFileSystem#close > is racing with restart and resulting in an add block after the edit log is > closed. -- 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