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

Jing Zhao commented on HDFS-9535:
---------------------------------

The failure is because:
# In HDFS-1172 we update the pending replication queue if a block has minimum 
required number of replicas but the NN has not received block-received report 
from some DN
# The test writes two blocks into a file. For the first block, it is possible 
that NN receives 0 block-received msg from DN but still commit the block when 
the client tries to get the next block. In that case we will add the block into 
under-replicated queue instead of the pending queue, and block recovery will 
happen in the cluster.
# This usually will not happen when closing the file since the client will 
retry the completeFile call until the minimum replication is satisfied. Thus a 
simple fix can be changing the file length to 1 block.

> Fix TestReplication#testNoExtraReplicationWhenBlockReceivedIsLate
> -----------------------------------------------------------------
>
>                 Key: HDFS-9535
>                 URL: https://issues.apache.org/jira/browse/HDFS-9535
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.8.0
>            Reporter: Jing Zhao
>            Priority: Minor
>
> TestReplication#testNoExtraReplicationWhenBlockReceivedIsLate failed in 
> several Jenkins run (e.g., 
> https://builds.apache.org/job/PreCommit-HDFS-Build/13818/testReport/). The 
> failure is on the last {{assertNoReplicationWasPerformed}} check.



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

Reply via email to