[ 
https://issues.apache.org/jira/browse/HDFS-9435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15009959#comment-15009959
 ] 

Masatake Iwasaki commented on HDFS-9435:
----------------------------------------

Thanks for working on this, [~rakeshr].

I think your analysis is correct. {{triggerHeartbeatForTests}} is possible to 
return before HeartbeatResponse is processed. How about using 
{{triggerBlockReportForTests}} instead? It also triggers heartbeat and returns 
after HeartbeatResponse is processed. Calling {{triggerHeartbeatForTests}} 
twice might work too.

If it turns out to need sleeps waiting for condition,  
{{GenericTestUtils#waitFor}} could be used.

> TestBlockRecovery#testRBWReplicas is failing intermittently
> -----------------------------------------------------------
>
>                 Key: HDFS-9435
>                 URL: https://issues.apache.org/jira/browse/HDFS-9435
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Rakesh R
>            Assignee: Rakesh R
>         Attachments: HDFS-9435-00.patch, HDFS-9435-01.patch, 
> testRBWReplicas.log
>
>
> TestBlockRecovery#testRBWReplicas is failing in the [build 
> 13536|https://builds.apache.org/job/PreCommit-HDFS-Build/13536/testReport/org.apache.hadoop.hdfs.server.datanode/TestBlockRecovery/testRBWReplicas/].
>  It looks like bug in tests due to race condition.
> Note: Attached logs taken from the build to this jira.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to