From b51806b45f9fa3f4396ac5902c18f5e1cb42906a Mon Sep 17 00:00:00 2001 From: Brahma Reddy Battula Date: Fri, 11 Nov 2016 20:08:15 +0530 Subject: [PATCH] HDFS-11128. CreateEditsLog throws NullPointerException. Contributed by Hanisha Koneru. (cherry picked from commit 1ae57f0f75695178dc135b0c259d066f7da31c9d) --- .../java/org/apache/hadoop/hdfs/server/namenode/NNStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NNStorage.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NNStorage.java index 157ba395490..6290c431ecd 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NNStorage.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NNStorage.java @@ -333,7 +333,7 @@ public class NNStorage extends Storage implements Closeable, * @param uri URI of a storage directory * @return The matching storage directory or null if none found */ - StorageDirectory getStorageDirectory(URI uri) { + public StorageDirectory getStorageDirectory(URI uri) { try { uri = Util.fileAsURI(new File(uri)); Iterator it = dirIterator();