From common-commits-return-97044-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Wed Oct 9 17:59:50 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5D184180645 for ; Wed, 9 Oct 2019 19:59:50 +0200 (CEST) Received: (qmail 60969 invoked by uid 500); 9 Oct 2019 17:59:49 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 60960 invoked by uid 99); 9 Oct 2019 17:59:49 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Oct 2019 17:59:49 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 7045A890A2; Wed, 9 Oct 2019 17:59:49 +0000 (UTC) Date: Wed, 09 Oct 2019 17:59:49 +0000 To: "common-commits@hadoop.apache.org" Subject: [hadoop] branch trunk updated: HDFS-14754. Erasure Coding : The number of Under-Replicated Blocks never reduced(addendum). Contributed by Surendra Singh Lilhore. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <157064398898.28412.14491154541967981413@gitbox.apache.org> From: surendralilhore@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: hadoop X-Git-Refname: refs/heads/trunk X-Git-Reftype: branch X-Git-Oldrev: 2d81abce5ecfec555eda4819a6e2f5b22e1cd9b8 X-Git-Newrev: d76e2655ace56490a92da70bde9e651ce515f80c X-Git-Rev: d76e2655ace56490a92da70bde9e651ce515f80c X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. surendralilhore pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/hadoop.git The following commit(s) were added to refs/heads/trunk by this push: new d76e265 HDFS-14754. Erasure Coding : The number of Under-Replicated Blocks never reduced(addendum). Contributed by Surendra Singh Lilhore. d76e265 is described below commit d76e2655ace56490a92da70bde9e651ce515f80c Author: Surendra Singh Lilhore AuthorDate: Wed Oct 9 23:20:28 2019 +0530 HDFS-14754. Erasure Coding : The number of Under-Replicated Blocks never reduced(addendum). Contributed by Surendra Singh Lilhore. --- .../hadoop/hdfs/server/namenode/TestRedudantBlocks.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestRedudantBlocks.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestRedudantBlocks.java index 943699a..ac25da3 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestRedudantBlocks.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestRedudantBlocks.java @@ -58,7 +58,7 @@ public class TestRedudantBlocks { private final int cellSize = ecPolicy.getCellSize(); private final int stripesPerBlock = 4; private final int blockSize = stripesPerBlock * cellSize; - private final int numDNs = groupSize + 1; + private final int numDNs = groupSize; @Before public void setup() throws IOException { @@ -110,12 +110,16 @@ public class TestRedudantBlocks { // update blocksMap cluster.triggerBlockReports(); - // add to invalidates + // delete redundant block cluster.triggerHeartbeats(); - // datanode delete block + //wait for IBR + Thread.sleep(1100); + + // trigger reconstruction cluster.triggerHeartbeats(); - // update blocksMap - cluster.triggerBlockReports(); + + //wait for IBR + Thread.sleep(1100); HashSet blockIdsSet = new HashSet(); --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org