hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yang Jiandan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-6999) PacketReceiver#readChannelFully is in an infinite loop
Date Mon, 08 Sep 2014 07:35:28 GMT

    [ 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)

Mime
View raw message