HDFS-4969. WebhdfsFileSystem expects non-standard WEBHDFS Json element. (rkanter via tucu)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1501868 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dfe70f6a03
commit
c6eaa8b37f
|
@ -1178,6 +1178,9 @@ Release 2.1.0-beta - 2013-07-02
|
||||||
HDFS-4951. FsShell commands using secure httpfs throw exceptions due
|
HDFS-4951. FsShell commands using secure httpfs throw exceptions due
|
||||||
to missing TokenRenewer. (rknater via tucu)
|
to missing TokenRenewer. (rknater via tucu)
|
||||||
|
|
||||||
|
HDFS-4969. WebhdfsFileSystem expects non-standard WEBHDFS Json element.
|
||||||
|
(rkanter via tucu)
|
||||||
|
|
||||||
Release 2.0.5-alpha - 06/06/2013
|
Release 2.0.5-alpha - 06/06/2013
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -248,7 +248,9 @@ public class JsonUtil {
|
||||||
final short replication = (short) (long) (Long) m.get("replication");
|
final short replication = (short) (long) (Long) m.get("replication");
|
||||||
final long fileId = m.containsKey("fileId") ? (Long) m.get("fileId")
|
final long fileId = m.containsKey("fileId") ? (Long) m.get("fileId")
|
||||||
: INodeId.GRANDFATHER_INODE_ID;
|
: INodeId.GRANDFATHER_INODE_ID;
|
||||||
final int childrenNum = (int) (long) (Long) m.get("childrenNum");
|
Long childrenNumLong = (Long) m.get("childrenNum");
|
||||||
|
final int childrenNum = (childrenNumLong == null) ? 0
|
||||||
|
: childrenNumLong.intValue();
|
||||||
return new HdfsFileStatus(len, type == PathType.DIRECTORY, replication,
|
return new HdfsFileStatus(len, type == PathType.DIRECTORY, replication,
|
||||||
blockSize, mTime, aTime, permission, owner, group,
|
blockSize, mTime, aTime, permission, owner, group,
|
||||||
symlink, DFSUtil.string2Bytes(localName), fileId, childrenNum);
|
symlink, DFSUtil.string2Bytes(localName), fileId, childrenNum);
|
||||||
|
|
Loading…
Reference in New Issue