hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Min Zhou (JIRA)" <j...@apache.org>
Subject [jira] Created: (HDFS-1549) ArrayIndexOutOfBoundsException throwed from BlockLocation
Date Tue, 21 Dec 2010 09:16:00 GMT
ArrayIndexOutOfBoundsException throwed from BlockLocation 
----------------------------------------------------------

                 Key: HDFS-1549
                 URL: https://issues.apache.org/jira/browse/HDFS-1549
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Min Zhou
             Fix For: 0.22.0


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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message