Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 60395 invoked from network); 9 Oct 2009 21:15:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Oct 2009 21:15:55 -0000 Received: (qmail 71654 invoked by uid 500); 9 Oct 2009 21:15:55 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 71579 invoked by uid 500); 9 Oct 2009 21:15:55 -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 71540 invoked by uid 99); 9 Oct 2009 21:15:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 21:15:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 21:15:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 67FD4234C48D for ; Fri, 9 Oct 2009 14:15:31 -0700 (PDT) Message-ID: <1772198340.1255122931425.JavaMail.jira@brutus> Date: Fri, 9 Oct 2009 14:15:31 -0700 (PDT) From: "Hairong Kuang (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-673) BlockReceiver#PacketResponder should not remove a packet from the ack queue before its ack is sent In-Reply-To: <941366367.1254436943527.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764210#action_12764210 ] Hairong Kuang commented on HDFS-673: ------------------------------------ There were two failed tests: org.apache.hadoop.hdfs.server.namenode.TestBlockUnderConstruction.testBlockCreation and org.apache.hadoop.hdfs.TestFileAppend2.testComplexAppend. The first one is a known bug. For the second one, the append write failed on "Too many open files". This seems not related to the change in this jira. I filed HDFS-690 to track the bug. > BlockReceiver#PacketResponder should not remove a packet from the ack queue before its ack is sent > -------------------------------------------------------------------------------------------------- > > Key: HDFS-673 > URL: https://issues.apache.org/jira/browse/HDFS-673 > Project: Hadoop HDFS > Issue Type: Bug > Components: data-node > Reporter: Hairong Kuang > Assignee: Hairong Kuang > Priority: Blocker > Fix For: 0.21.0 > > Attachments: pkgRmOrder.patch > > > After a BlockReceiver finish receiving the last packet of a block, it waits until the ack queue becomes empty. It them assumes that all acks have been sent and shunts down network connections. The current code removes a packet from the ack queue before its ack is sent. So there is a chance that the connection gets closed before an ack is sent. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.