[ https://issues.apache.org/jira/browse/HDFS-5830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13881535#comment-13881535
]
Kihwal Lee commented on HDFS-5830:
----------------------------------
Marking it as a blocker since WebHdfsFileSystem should remain compatible. {{toLocatedBlock()}}
should use a different version of constructor if cached location is null.
> WebHdfsFileSystem.getFileBlockLocations throws IllegalArgumentException when accessing
another cluster.
> --------------------------------------------------------------------------------------------------------
>
> Key: HDFS-5830
> URL: https://issues.apache.org/jira/browse/HDFS-5830
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: caching, hdfs-client
> Affects Versions: 2.3.0
> Reporter: Yongjun Zhang
> Assignee: Yongjun Zhang
> Priority: Blocker
>
> WebHdfsFileSystem.getFileBlockLocations throws IllegalArgumentException when accessing
a another cluster (that doesn't have caching support).
> java.lang.IllegalArgumentException: cachedLocs should not be null, use a different constructor
> at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
> at org.apache.hadoop.hdfs.protocol.LocatedBlock.<init>(LocatedBlock.java:79)
> at org.apache.hadoop.hdfs.web.JsonUtil.toLocatedBlock(JsonUtil.java:414)
> at org.apache.hadoop.hdfs.web.JsonUtil.toLocatedBlockList(JsonUtil.java:446)
> at org.apache.hadoop.hdfs.web.JsonUtil.toLocatedBlocks(JsonUtil.java:479)
> at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getFileBlockLocations(WebHdfsFileSystem.java:1067)
> at org.apache.hadoop.fs.FileSystem$4.next(FileSystem.java:1812)
> at org.apache.hadoop.fs.FileSystem$4.next(FileSystem.java:1797)
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
|