Revert "HADOOP-10054. ViewFsFileStatus.toString() is broken. Contributed by Hanisha Koneru."

This reverts commit 37efa67e37.
This commit is contained in:
Arpit Agarwal 2018-01-02 17:34:29 -08:00
parent d82874851e
commit 4ad39ec308
1 changed files with 10 additions and 10 deletions

View File

@ -444,18 +444,18 @@ public class FileStatus implements Writable, Comparable<Object>,
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName()); sb.append(getClass().getSimpleName());
sb.append("{"); sb.append("{");
sb.append("path=" + getPath()); sb.append("path=" + path);
sb.append("; isDirectory=" + isDirectory()); sb.append("; isDirectory=" + isdir);
if(!isDirectory()){ if(!isDirectory()){
sb.append("; length=" + getLen()); sb.append("; length=" + length);
sb.append("; replication=" + getReplication()); sb.append("; replication=" + block_replication);
sb.append("; blocksize=" + getBlockSize()); sb.append("; blocksize=" + blocksize);
} }
sb.append("; modification_time=" + getModificationTime()); sb.append("; modification_time=" + modification_time);
sb.append("; access_time=" + getAccessTime()); sb.append("; access_time=" + access_time);
sb.append("; owner=" + getOwner()); sb.append("; owner=" + owner);
sb.append("; group=" + getGroup()); sb.append("; group=" + group);
sb.append("; permission=" + getPermission()); sb.append("; permission=" + permission);
sb.append("; isSymlink=" + isSymlink()); sb.append("; isSymlink=" + isSymlink());
if(isSymlink()) { if(isSymlink()) {
try { try {