[ https://issues.apache.org/jira/browse/HDFS-10810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15544131#comment-15544131 ]
Hudson commented on HDFS-10810: ------------------------------- SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10536 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/10536/]) HDFS-10810. setreplication removing block from underconstrcution (liuml07: rev 8078a5efd0fe26b82c3768e06ccd2faddc619a7f) * (edit) hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java * (edit) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileCorruption.java > 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 > Components: namenode > Reporter: Brahma Reddy Battula > Assignee: Brahma Reddy Battula > Fix For: 2.8.0, 3.0.0-alpha2 > > Attachments: HDFS-10810-002.patch, HDFS-10810-003.patch, > HDFS-10810-branch-2.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-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org