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 79B1311092 for ; Mon, 8 Sep 2014 07:35:29 +0000 (UTC) Received: (qmail 7849 invoked by uid 500); 8 Sep 2014 07:35:29 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 7796 invoked by uid 500); 8 Sep 2014 07:35:29 -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 7767 invoked by uid 99); 8 Sep 2014 07:35:29 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2014 07:35:29 +0000 Date: Mon, 8 Sep 2014 07:35:28 +0000 (UTC) From: "Yang Jiandan (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-6999) PacketReceiver#readChannelFully is in an infinite loop 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-6999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14125275#comment-14125275 ] Yang Jiandan commented on HDFS-6999: ------------------------------------ We can't reproduce stably and don't know exactly the particular combination now. In our Configuration "dfs.datanode.transferTo.allowed"= ture, So We doube BlockSender may only sends the head of packet and don't send the data part of the packet because of some reasons. > PacketReceiver#readChannelFully is in an infinite loop > ------------------------------------------------------ > > Key: HDFS-6999 > URL: https://issues.apache.org/jira/browse/HDFS-6999 > Project: Hadoop HDFS > Issue Type: Bug > Components: datanode, hdfs-client > Affects Versions: 2.4.1 > Reporter: Yang Jiandan > Priority: Critical > > In our cluster, we found hbase handler may be never return when it reads hdfs file using RemoteBlockReader2, and the hander thread occupys 100% cup. wo found this is because PacketReceiver#readChannelFully is in an infinite loop. the following while never break. > {code:xml} > while (buf.remaining() > 0) { > int n = ch.read(buf); > if (n < 0) { > throw new IOException("Premature EOF reading from " + ch); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)