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

ArrayIndexOutOfBoundsException throwed from BlockLocation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • 0.22.0
    • None
    • None
    • BlockLocation

    Description

      BlockLocation object created through the default constructor has a hosts array with its length of zero. It will apparently throw an ArrayIndexOutOfBoundsException when reading fields from DataInput if not resized the array length.

      Exception in thread "IPC Client (47) connection to nn151/192.168.201.151:9020 from zhoumin" java.lang.ArrayIndexOutOfBoundsException: 0
      at org.apache.hadoop.fs.BlockLocation.readFields(BlockLocation.java:177)
      at org.apache.hadoop.fs.LocatedFileStatus.readFields(LocatedFileStatus.java:85)
      at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:237)
      at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:171)
      at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:219)
      at org.apache.hadoop.io.ObjectWritable.readFields(ObjectWritable.java:66)
      at org.apache.hadoop.ipc.Client$Connection.receiveResponse(Client.java:509)
      at org.apache.hadoop.ipc.Client$Connection.run(Client.java:439)

      Attachments

        Activity

          People

            Unassigned Unassigned
            coderplay Min Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: