You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Min Zhou (JIRA)" <ji...@apache.org> on 2010/12/23 14:42:01 UTC
[jira] Resolved: (HDFS-1549) ArrayIndexOutOfBoundsException throwed
from BlockLocation
[ https://issues.apache.org/jira/browse/HDFS-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Min Zhou resolved HDFS-1549.
----------------------------
Resolution: Not A Problem
Since the bug has been fixed in trunk, I should close this issue.
> 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.