Repository: hadoop
Updated Branches:
  refs/heads/branch-3.1 2d82a21b8 -> 5f4762d95


HDFS-7101. Potential null dereference in DFSck#doWork(). Contributed by skrho 
and Ted Yu.

(cherry picked from commit 113af12cfb240ea9a7189bb2701693466eb8e993)


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

Branch: refs/heads/branch-3.1
Commit: 5f4762d9505f31e2d7cb6ce702b97f779308f53f
Parents: 2d82a21
Author: Akira Ajisaka <aajis...@apache.org>
Authored: Thu Apr 12 17:47:37 2018 +0900
Committer: Akira Ajisaka <aajis...@apache.org>
Committed: Thu Apr 12 17:48:14 2018 +0900

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hdfs/tools/DFSck.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/5f4762d9/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSck.java
----------------------------------------------------------------------
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSck.java
 
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSck.java
index 96fca24..10b0012 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSck.java
+++ 
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSck.java
@@ -354,7 +354,7 @@ public class DFSck extends Configured implements Tool {
     BufferedReader input = new BufferedReader(new InputStreamReader(
                                               stream, "UTF-8"));
     String line = null;
-    String lastLine = null;
+    String lastLine = NamenodeFsck.CORRUPT_STATUS;
     int errCode = -1;
     try {
       while ((line = input.readLine()) != null) {


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

Reply via email to