[ https://issues.apache.org/jira/browse/HDFS-15403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17134836#comment-17134836 ]
Takanobu Asanuma commented on HDFS-15403: ----------------------------------------- {quote}the NPE here is because of e.getMessage() is null , which is not the exception thrown by try block here {quote} Yeah, your comment is more accurate. Shouldn't we call onFailure() when e.getMessage() is null? > NPE in FileIoProvider#transferToSocketFully > ------------------------------------------- > > Key: HDFS-15403 > URL: https://issues.apache.org/jira/browse/HDFS-15403 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: hemanthboyina > Assignee: hemanthboyina > Priority: Major > Attachments: HDFS-15403.001.patch > > > {code:java} > [DataXceiver for client at /127.0.0.1:41904 [Sending block > BP-293397713-127.0.1.1-1591535936877:blk_-9223372036854775786_1001]] ERROR > datanode.DataNode (DataXceiver.java:run(324)) - 127.0.0.1:34789:DataXceiver > error processing READ_BLOCK operation src: /127.0.0.1:41904 dst: > /127.0.0.1:34789[DataXceiver for client at /127.0.0.1:41904 [Sending block > BP-293397713-127.0.1.1-1591535936877:blk_-9223372036854775786_1001]] ERROR > datanode.DataNode (DataXceiver.java:run(324)) - 127.0.0.1:34789:DataXceiver > error processing READ_BLOCK operation src: /127.0.0.1:41904 dst: > /127.0.0.1:34789java.lang.NullPointerException > at > org.apache.hadoop.hdfs.server.datanode.FileIoProvider.transferToSocketFully(FileIoProvider.java:283) > at > org.apache.hadoop.hdfs.server.datanode.BlockSender.sendPacket(BlockSender.java:614) > at > org.apache.hadoop.hdfs.server.datanode.BlockSender.doSendBlock(BlockSender.java:809) > at > org.apache.hadoop.hdfs.server.datanode.BlockSender.sendBlock(BlockSender.java:756) > at > org.apache.hadoop.hdfs.server.datanode.DataXceiver.readBlock(DataXceiver.java:610) > at > org.apache.hadoop.hdfs.protocol.datatransfer.Receiver.opReadBlock(Receiver.java:152) > at > org.apache.hadoop.hdfs.protocol.datatransfer.Receiver.processOp(Receiver.java:104 > at > org.apache.hadoop.hdfs.server.datanode.DataXceiver.run(DataXceiver.java:292) > at java.lang.Thread.run(Thread.java:748) {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org