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 99B2C200BA3 for ; Thu, 6 Oct 2016 00:41:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 98504160AEB; Wed, 5 Oct 2016 22:41: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 DFE5E160AEA for ; Thu, 6 Oct 2016 00:41:21 +0200 (CEST) Received: (qmail 87323 invoked by uid 500); 5 Oct 2016 22:41:20 -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 87292 invoked by uid 99); 5 Oct 2016 22:41:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2016 22:41:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 809DA2C2A65 for ; Wed, 5 Oct 2016 22:41:20 +0000 (UTC) Date: Wed, 5 Oct 2016 22:41:20 +0000 (UTC) From: "Zhe Zhang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-10966) Enhance Dispatcher logic on deciding when to give up a source DataNode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 05 Oct 2016 22:41:22 -0000 Zhe Zhang created HDFS-10966: -------------------------------- Summary: Enhance Dispatcher logic on deciding when to give up a source DataNode Key: HDFS-10966 URL: https://issues.apache.org/jira/browse/HDFS-10966 Project: Hadoop HDFS Issue Type: Bug Components: balancer & mover Reporter: Zhe Zhang Assignee: Mark Wagner When a {{Dispatcher}} thread works on a source DataNode, in each iteration it tries to execute a {{PendingMove}}. If no block is moved after 5 iterations, this source (over-utlized) DataNode is given up for this Balancer iteration (20 mins). This is problematic if the source DataNode was heavily loaded in the beginning of the iteration. It will quickly encounter 5 unsuccessful moves and be abandoned. We should enhance this logic by e.g. using elapsed time instead of number of iterations. {code} // Check if the previous move was successful } else { // source node cannot find a pending block to move, iteration +1 noPendingMoveIteration++; // in case no blocks can be moved for source node's task, // jump out of while-loop after 5 iterations. if (noPendingMoveIteration >= MAX_NO_PENDING_MOVE_ITERATIONS) { LOG.info("Failed to find a pending move " + noPendingMoveIteration + " times. Skipping " + this); resetScheduledSize(); } } {code} -- 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