[
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-2952-HDFS-1623.patch
Here's a patch which addresses the issue.
This was discovered because of the commit of HDFS-2952. I didn't notice this
problem because when I ran the HA tests, it just so happened that
TestDFSUpgradeWithHA was run last, and thus it did not interfere with any other
test. To test this patch, I ran the following, which results in
TestDFSUpgradeWithHA running before the other test:
{code}
mvn -Dtest=TestDFSUpgradeWithHA,TestDNFencingWithReplication test
{code}
Without this patch, TestDNFencingWithReplication should fail.
> 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
>
>
> 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