Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4255

Useless stacktrace shown in DN when there's an error writing a block

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0.2-alpha
    • None
    • datanode
    • None

    Description

      The DN sometimes carries these, especially when its asked to shutdown and there's ongoing write activity. The stacktrace is absolutely useless and may be improved, and the message it comes as part of is an INFO, which should not be the case when a stacktrace is necessary to be print (indicative of a trouble).

      2012-12-01 19:10:23,167 INFO  datanode.DataNode (BlockReceiver.java:run(955)) - PacketResponder: BP-1493454111-192.168.2.1-1354369220726:blk_-8775461920430955284_1002, type=HAS_DOWNSTREAM_IN_PIPELINE
      java.io.EOFException: Premature EOF: no length prefix available
      	at org.apache.hadoop.hdfs.protocol.HdfsProtoUtil.vintPrefixed(HdfsProtoUtil.java:171)
      	at org.apache.hadoop.hdfs.protocol.datatransfer.PipelineAck.readFields(PipelineAck.java:116)
      	at org.apache.hadoop.hdfs.server.datanode.BlockReceiver$PacketResponder.run(BlockReceiver.java:905)
      	at java.lang.Thread.run(Thread.java:680)
      

      Full scenario log in comments.

      Attachments

        Activity

          People

            Unassigned Unassigned
            qwertymaniac Harsh J
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: