HDFS-11128. CreateEditsLog throws NullPointerException. Contributed by Hanisha Koneru.
(cherry picked from commit 1ae57f0f75
)
This commit is contained in:
parent
51f5bab695
commit
121b56de14
|
@ -333,7 +333,7 @@ public class NNStorage extends Storage implements Closeable,
|
||||||
* @param uri URI of a storage directory
|
* @param uri URI of a storage directory
|
||||||
* @return The matching storage directory or null if none found
|
* @return The matching storage directory or null if none found
|
||||||
*/
|
*/
|
||||||
StorageDirectory getStorageDirectory(URI uri) {
|
public StorageDirectory getStorageDirectory(URI uri) {
|
||||||
try {
|
try {
|
||||||
uri = Util.fileAsURI(new File(uri));
|
uri = Util.fileAsURI(new File(uri));
|
||||||
Iterator<StorageDirectory> it = dirIterator();
|
Iterator<StorageDirectory> it = dirIterator();
|
||||||
|
|
Loading…
Reference in New Issue