[
https://issues.apache.org/jira/browse/HDFS-9225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Masatake Iwasaki updated HDFS-9225:
-----------------------------------
Attachment: HDFS-9225.001.patch
The cause seems to be {{TestBlockManager#addBlockOnNodes}} mocking FSNamesytem
while the thread launched by {{BlockManager#processMisReplicatedBlocks}} is
accessing it.
There are another problems to use {{BlockManager#processMisReplicatedBlocks}}
in the test.
* It is asynchronous and there is no way to wait for it finishes.
* It is no-op if {{FSNamesystem#isRunning}} returns false.
The patch makes test checks the condition by itself instead of calling
{{BlockManager#processMisReplicatedBlocks}}.
> Fix intermittent test failure of
> TestBlockManager.testBlocksAreNotUnderreplicatedInSingleRack
> ---------------------------------------------------------------------------------------------
>
> Key: HDFS-9225
> URL: https://issues.apache.org/jira/browse/HDFS-9225
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Reporter: Masatake Iwasaki
> Assignee: Masatake Iwasaki
> Priority: Minor
> Attachments: HDFS-9225.001.patch
>
>
> TestBlockManager#testBlocksAreNotUnderreplicatedInSingleRack sometimes fails
> in QA build due to mocking.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)