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

Rakesh R commented on HDFS-9435:
--------------------------------

Thanks a lot [~walter.k.su] for the comments. Yes, we should have a mechanism 
to wait for the active NN updation. I think {{waitFor}} would give enough time 
to perform the following operation and updates the activeNN. During the test 
startup, we have already {{dn.getAllBpOs().get(0).triggerHeartbeatForTests();}} 
schedule heartbeat. Shall I post another patch with only {{waitFor}}, probably 
will wait for upto 15secs. Does this sounds good to you?

{code}
BPServiceActor.java

bpos.updateActorStatesFromHeartbeat(this, resp.getNameNodeHaState());
{code}

> 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, 
> HDFS-9435-02.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