[ https://issues.apache.org/jira/browse/HDFS-3037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aaron T. Myers updated HDFS-3037:
---------------------------------
Attachment: HDFS-3037.patch
Here's a patch which addresses the issue. I tested this by putting a "Thread.sleep(5000)"
at the top of BPOfferService#offerService. Without this patch, the test consistently fails.
With the patch, it consistently passes.
> TestMulitipleNNDataBlockScanner#testBlockScannerAfterRestart is racy
> --------------------------------------------------------------------
>
> Key: HDFS-3037
> URL: https://issues.apache.org/jira/browse/HDFS-3037
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 0.24.0
> Reporter: Aaron T. Myers
> Assignee: Aaron T. Myers
> Priority: Minor
> Attachments: HDFS-3037.patch
>
>
> In this test, we restart a DN in a running cluster, call MiniDFS#waitActive, and then
assert some things about the DN. Trouble is, MiniDFSCluster#waitActive won't wait any time
at all, since the DN had previously registered with the NN and the NN never had time to realize
the DN was dead.
--
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
|