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 7ACB617D91 for ; Sun, 19 Oct 2014 01:31:36 +0000 (UTC) Received: (qmail 57819 invoked by uid 500); 19 Oct 2014 01:31:34 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 57766 invoked by uid 500); 19 Oct 2014 01:31:34 -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 57754 invoked by uid 99); 19 Oct 2014 01:31:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Oct 2014 01:31:34 +0000 Date: Sun, 19 Oct 2014 01:31:34 +0000 (UTC) From: "Tsz Wo Nicholas Sze (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-7264) Tha last datanode in a pipeline should send a heartbeat when there is no traffic 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-7264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14176190#comment-14176190 ] Tsz Wo Nicholas Sze commented on HDFS-7264: ------------------------------------------- > Shouldn't we add the heartbeat packet to the front of the queue? The queue is empty. So it is the same. > org.apache.hadoop.hdfs.TestLeaseRecovery2 I cannot reproduce the failure of TestLeaseRecovery2. It seems not related. > Tha last datanode in a pipeline should send a heartbeat when there is no traffic > -------------------------------------------------------------------------------- > > Key: HDFS-7264 > URL: https://issues.apache.org/jira/browse/HDFS-7264 > Project: Hadoop HDFS > Issue Type: Improvement > Components: datanode > Reporter: Tsz Wo Nicholas Sze > Assignee: Tsz Wo Nicholas Sze > Attachments: h7264_20141017.patch > > > When the client is writing slowly, the client will send a heartbeat to signal that the connection is still alive. This case works fine. > However, when a client is writing fast but some of the datanodes in the pipeline are busy, a PacketResponder may get a timeout since no ack is sent from the upstream datanode. We suggest that the last datanode in a pipeline should send a heartbeat when there is no traffic. -- This message was sent by Atlassian JIRA (v6.3.4#6332)