Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AB982200BA6 for ; Tue, 4 Oct 2016 04:10:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AA3B2160AED; Tue, 4 Oct 2016 02:10:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E7AAA160ADC for ; Tue, 4 Oct 2016 04:10:21 +0200 (CEST) Received: (qmail 53667 invoked by uid 500); 4 Oct 2016 02:10:21 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 53620 invoked by uid 99); 4 Oct 2016 02:10:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2016 02:10:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B80F82C2A64 for ; Tue, 4 Oct 2016 02:10:20 +0000 (UTC) Date: Tue, 4 Oct 2016 02:10:20 +0000 (UTC) From: "Mingliang Liu (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-10810) Setreplication removing block from underconstrcution temporarily when batch IBR is enabled. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 04 Oct 2016 02:10:22 -0000 [ https://issues.apache.org/jira/browse/HDFS-10810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mingliang Liu updated HDFS-10810: --------------------------------- Resolution: Fixed Hadoop Flags: Reviewed Status: Resolved (was: Patch Available) Committed to {{trunk}} through {{branch-2.8}}. Thanks for you contribution, [~brahmareddy]. Thanks for your review, [~szetszwo]. > 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 > 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-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org