hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aengin...@apache.org
Subject [07/23] hadoop git commit: Revert "HADOOP-10054. ViewFsFileStatus.toString() is broken. Contributed by Hanisha Koneru."
Date Thu, 04 Jan 2018 20:25:16 GMT
Revert "HADOOP-10054. ViewFsFileStatus.toString() is broken. Contributed by Hanisha Koneru."

This reverts commit 37efa67e377e7fc251ee0088098f4b1700d21823.


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

Branch: refs/heads/HDFS-7240
Commit: 4ad39ec3084ab45fb9bbace13082c88666a76a4c
Parents: d828748
Author: Arpit Agarwal <arp@apache.org>
Authored: Tue Jan 2 17:34:29 2018 -0800
Committer: Arpit Agarwal <arp@apache.org>
Committed: Tue Jan 2 17:34:29 2018 -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/4ad39ec3/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 63efc12..0663c43 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=" + getPath());
-    sb.append("; isDirectory=" + isDirectory());
+    sb.append("path=" + path);
+    sb.append("; isDirectory=" + isdir);
     if(!isDirectory()){
-      sb.append("; length=" + getLen());
-      sb.append("; replication=" + getReplication());
-      sb.append("; blocksize=" + getBlockSize());
+      sb.append("; length=" + length);
+      sb.append("; replication=" + block_replication);
+      sb.append("; blocksize=" + blocksize);
     }
-    sb.append("; modification_time=" + getModificationTime());
-    sb.append("; access_time=" + getAccessTime());
-    sb.append("; owner=" + getOwner());
-    sb.append("; group=" + getGroup());
-    sb.append("; permission=" + getPermission());
+    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("; isSymlink=" + isSymlink());
     if(isSymlink()) {
       try {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message