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 01DCA200B67 for ; Tue, 16 Aug 2016 19:43:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 009E0160AA8; Tue, 16 Aug 2016 17:43:23 +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 4A6B8160ABA for ; Tue, 16 Aug 2016 19:43:22 +0200 (CEST) Received: (qmail 87459 invoked by uid 500); 16 Aug 2016 17:43: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 87233 invoked by uid 99); 16 Aug 2016 17:43:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2016 17:43:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C8D4F2C02B7 for ; Tue, 16 Aug 2016 17:43:20 +0000 (UTC) Date: Tue, 16 Aug 2016 17:43:20 +0000 (UTC) From: "Kuhu Shukla (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-10743) MiniDFSCluster test runtimes can be drastically reduce MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 16 Aug 2016 17:43:23 -0000 [ https://issues.apache.org/jira/browse/HDFS-10743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15423141#comment-15423141 ] Kuhu Shukla commented on HDFS-10743: ------------------------------------ [~linyiqun]. Since I am actively working on this JIRA as the current assignee, I will post my patches shortly and will call you out for any review comments. Thanks for the input. > MiniDFSCluster test runtimes can be drastically reduce > ------------------------------------------------------ > > Key: HDFS-10743 > URL: https://issues.apache.org/jira/browse/HDFS-10743 > Project: Hadoop HDFS > Issue Type: Improvement > Components: hdfs > Affects Versions: 2.0.0-alpha > Reporter: Daryn Sharp > Assignee: Kuhu Shukla > Attachments: HDFS-10743.001.patch, HDFS-10743.002.patch, HDFS-10743.003.patch > > > {{MiniDFSCluster}} tests have excessive runtimes. The main problem appears to be the heartbeat interval. The NN may have to wait up to 3s (default value) for all DNs to heartbeat, triggering registration, so NN can go active. Tests that repeatedly restart the NN are severely affected. > Example for varying heartbeat intervals for {{TestFSImageWithAcl}}: > * 3s = ~70s -- (disgusting, why I investigated) > * 1s = ~27s > * 500ms = ~17s -- (had to hack DNConf for millisecond precision) > That a 4x improvement in runtime. > 17s is still excessively long for what the test does. Further areas to explore when running tests: > * Reduce numerous sleeps intervals in DN's {{BPServiceActor}}. > * Ensure heartbeats and initial BR are sent immediately upon (re)registration. -- 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