[ https://issues.apache.org/jira/browse/HDFS-6999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14123678#comment-14123678 ]
stack commented on HDFS-6999: ----------------------------- Any chance of your having the particular combination that brings on the infinite loop [~yangjiandan]? Can you reproduce at all? Thanks. > 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)