From 121b56de14e8fdab30306fb626946b2877149732 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 91ed20a8583..676b1a00bf2 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();