HDFS-11128. CreateEditsLog throws NullPointerException. Contributed by Hanisha Koneru.
This commit is contained in:
parent
fd2f22adec
commit
1ae57f0f75
@ -338,7 +338,7 @@ synchronized void setStorageDirectories(Collection<URI> fsNameDirs,
|
||||
* @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<StorageDirectory> it = dirIterator();
|
||||
|
Loading…
Reference in New Issue
Block a user