Repository: hadoop
Updated Branches:
  refs/heads/trunk f8af0e2fe -> 37efa67e3


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


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/37efa67e
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/37efa67e
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/37efa67e

Branch: refs/heads/trunk
Commit: 37efa67e377e7fc251ee0088098f4b1700d21823
Parents: f8af0e2
Author: Xiaoyu Yao <[email protected]>
Authored: Thu Dec 14 10:58:16 2017 -0800
Committer: Xiaoyu Yao <[email protected]>
Committed: Thu Dec 14 10:58:16 2017 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/fs/FileStatus.java   | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/37efa67e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java
----------------------------------------------------------------------
diff --git 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java
 
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java
index 0663c43..63efc12 100644
--- 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java
+++ 
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java
@@ -444,18 +444,18 @@ public class FileStatus implements Writable, 
Comparable<Object>,
     StringBuilder sb = new StringBuilder();
     sb.append(getClass().getSimpleName()); 
     sb.append("{");
-    sb.append("path=" + path);
-    sb.append("; isDirectory=" + isdir);
+    sb.append("path=" + getPath());
+    sb.append("; isDirectory=" + isDirectory());
     if(!isDirectory()){
-      sb.append("; length=" + length);
-      sb.append("; replication=" + block_replication);
-      sb.append("; blocksize=" + blocksize);
+      sb.append("; length=" + getLen());
+      sb.append("; replication=" + getReplication());
+      sb.append("; blocksize=" + getBlockSize());
     }
-    sb.append("; modification_time=" + modification_time);
-    sb.append("; access_time=" + access_time);
-    sb.append("; owner=" + owner);
-    sb.append("; group=" + group);
-    sb.append("; permission=" + permission);
+    sb.append("; modification_time=" + getModificationTime());
+    sb.append("; access_time=" + getAccessTime());
+    sb.append("; owner=" + getOwner());
+    sb.append("; group=" + getGroup());
+    sb.append("; permission=" + getPermission());
     sb.append("; isSymlink=" + isSymlink());
     if(isSymlink()) {
       try {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to