[
https://issues.apache.org/jira/browse/HDFS-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aaron T. Myers updated HDFS-2974:
---------------------------------
Attachment: HDFS-2974-HDFS-1623.patch
Whoops! Looks like I uploaded the wrong patch last time. Here's the right one.
I also discovered that this fix caused TestCheckpoint to fail, because of a bug
in TestCheckpoint. In one of the TestCheckpoint cases, we restart a mini
cluster to assert that having a locked storage directory will cause the NN to
fail to start. However, the test case errantly had the NN format the name dir
on start. The only reason this test was passing was because of the bug in
MiniDFSCluster. The attached patch fixes this bug as well.
> HA: MiniDFSCluster does not delete standby NN name dirs during format
> ---------------------------------------------------------------------
>
> Key: HDFS-2974
> URL: https://issues.apache.org/jira/browse/HDFS-2974
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ha, test
> Affects Versions: HA branch (HDFS-1623)
> Reporter: Aaron T. Myers
> Assignee: Aaron T. Myers
> Attachments: HDFS-2952-HDFS-1623.patch, HDFS-2974-HDFS-1623.patch
>
>
> When the MiniDFSCluster is formtting an HA cluster, it formats the first NN,
> and then copies the contents of that directory to the second NNs name dirs.
> However, the second NNs name dirs are not emptied first, and thus a previous
> test's state may interfere with the test.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira