hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mingliang Liu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-10810) Setreplication removing block from underconstrcution temporarily when batch IBR is enabled.
Date Wed, 28 Sep 2016 06:50:21 GMT

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

Mingliang Liu commented on HDFS-10810:
--------------------------------------

Thanks for your confirmation, [~szetszwo]. I'll hold on commit by this week in case someone
proposes concerns.

Besides, I think this test is using fixed time sleep for event waiting. It will be great if
you can use some techniques proposed in [HDFS-10666], [~brahmareddy].

>  Setreplication removing block from underconstrcution temporarily when batch IBR is enabled.
> --------------------------------------------------------------------------------------------
>
>                 Key: HDFS-10810
>                 URL: https://issues.apache.org/jira/browse/HDFS-10810
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Brahma Reddy Battula
>            Assignee: Brahma Reddy Battula
>         Attachments: HDFS-10810-002.patch, HDFS-10810.patch
>
>
> 1)Batch IBR is enabled with number of committed blocks allowed=1
> 2) Written one block and closed the file without waiting for IBR
> 3)Setreplication called immediately on the file. 
> So till the finalized IBR Received, block will not be added to {{neededReconstruction}}
since following check will be {{false}} as block is not marked as complete.
> {code}
> if (isNeededReconstruction(block, repl.liveReplicas())) {
>         neededReconstruction.update(block, repl.liveReplicas(),
>             repl.readOnlyReplicas(), repl.decommissionedAndDecommissioning(),
>             curExpectedReplicas, curReplicasDelta, expectedReplicasDelta);
>       }.{code}
> Hence block will not marked as under-replicated.



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

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


Mime
View raw message