You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Ayush Saxena (Jira)" <ji...@apache.org> on 2021/06/20 05:42:00 UTC

[jira] [Resolved] (HDFS-16061) DFTestUtil.waitReplication can produce false positives

     [ https://issues.apache.org/jira/browse/HDFS-16061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ayush Saxena resolved HDFS-16061.
---------------------------------
    Fix Version/s: 3.3.2
                   3.2.3
                   3.4.0
     Hadoop Flags: Reviewed
       Resolution: Fixed

> DFTestUtil.waitReplication can produce false positives
> ------------------------------------------------------
>
>                 Key: HDFS-16061
>                 URL: https://issues.apache.org/jira/browse/HDFS-16061
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs
>            Reporter: Ahmed Hussein
>            Assignee: Ahmed Hussein
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.4.0, 3.2.3, 3.3.2
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> While checking the intermittent failure in TestBalancerRPCDelay#testBalancerRPCDelayQpsDefault described in HDFS-15146, I found that the implementation of waitReplication is incorrect.
> In the last iteration, when {{correctReplFactor}} is {{false}}, the thread sleeps for 1 second, then a {{TimeoutException}} is thrown without check whether the replication was complete in the last second.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org