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 D2FF2200BB3 for ; Wed, 2 Nov 2016 21:13:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D1E96160AF0; Wed, 2 Nov 2016 20:13:00 +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 29A23160B0D for ; Wed, 2 Nov 2016 21:13:00 +0100 (CET) Received: (qmail 2996 invoked by uid 500); 2 Nov 2016 20:12:59 -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 2842 invoked by uid 99); 2 Nov 2016 20:12:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2016 20:12:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BB6342C2ABC for ; Wed, 2 Nov 2016 20:12:58 +0000 (UTC) Date: Wed, 2 Nov 2016 20:12:58 +0000 (UTC) From: "Eric Badger (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-11094) TestLargeBlockReport fails intermittently MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 02 Nov 2016 20:13:01 -0000 [ https://issues.apache.org/jira/browse/HDFS-11094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Badger updated HDFS-11094: ------------------------------- Attachment: HDFS-11094.001.patch The problem is that the MiniDFSCluster doesn't wait for the DN(s) to heartbeat before it declares itself as "active" or "up". Since the DNs haven't heartbeated in yet, if the test asks the DN for the active NN it will return null. This will then cause the test to fail. So I am proposing that we wait for the DN(s) to hearbeat into the NN before allowing the cluster to return from its {{build()}} method. This may also have a performance boost since it will cause the DNs to be proactive in talking to the namenode instead of waiting and doing it on a timer. > TestLargeBlockReport fails intermittently > ----------------------------------------- > > Key: HDFS-11094 > URL: https://issues.apache.org/jira/browse/HDFS-11094 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Eric Badger > Assignee: Eric Badger > Attachments: HDFS-11094.001.patch > > > {noformat} > java.lang.NullPointerException: null > at org.apache.hadoop.hdfs.server.datanode.TestLargeBlockReport.testBlockReportSucceedsWithLargerLengthLimit(TestLargeBlockReport.java:96) > {noformat} -- 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