Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4175610F8B for ; Tue, 6 Aug 2013 18:43:58 +0000 (UTC) Received: (qmail 67703 invoked by uid 500); 6 Aug 2013 18:43:57 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 67681 invoked by uid 500); 6 Aug 2013 18:43:57 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 67672 invoked by uid 99); 6 Aug 2013 18:43:57 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Aug 2013 18:43:57 +0000 Date: Tue, 6 Aug 2013 18:43:57 +0000 (UTC) From: "Nicolas Liochon (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-4754) Add an API in the namenode to mark a datanode as stale MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-4754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13731080#comment-13731080 ] Nicolas Liochon commented on HDFS-4754: --------------------------------------- v4: - the api is in HdfsAdmin, so it can be used without going to DFSClient. - the info is now in DataNodeInfo, we we don't have to impact the placement policy api (and there is no map to manage) - it's documented in hdfs-default.xml - by default it's disabled, and it's marked as an advanced api - there is a log line with the caller name & machine (thanks Harsh). > Add an API in the namenode to mark a datanode as stale > ------------------------------------------------------ > > Key: HDFS-4754 > URL: https://issues.apache.org/jira/browse/HDFS-4754 > Project: Hadoop HDFS > Issue Type: Improvement > Components: hdfs-client, namenode > Reporter: Nicolas Liochon > Assignee: Nicolas Liochon > Priority: Critical > Attachments: 4754.v1.patch, 4754.v2.patch, 4754.v4.patch > > > There is a detection of the stale datanodes in HDFS since HDFS-3703, with a timeout, defaulted to 30s. > There are two reasons to add an API to mark a node as stale even if the timeout is not yet reached: > 1) ZooKeeper can detect that a client is dead at any moment. So, for HBase, we sometimes start the recovery before a node is marked staled. (even with reasonable settings as: stale: 20s; HBase ZK timeout: 30s > 2) Some third parties could detect that a node is dead before the timeout, hence saving us the cost of retrying. An example or such hw is Arista, presented here by [~tsuna] http://tsunanet.net/~tsuna/fsf-hbase-meetup-april13.pdf, and confirmed in HBASE-6290. > As usual, even if the node is dead it can comeback before the 10 minutes limit. So I would propose to set a timebound. The API would be > namenode.markStale(String ipAddress, int port, long durationInMs); > After durationInMs, the namenode would again rely only on its heartbeat to decide. > Thoughts? > If there is no objections, and if nobody in the hdfs dev team has the time to spend some time on it, I will give it a try for branch 2 & 3. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira