HDFS-11571. Typo in DataStorage exception message (Contributed by Anna Budai via Daniel Templeton)

(cherry picked from commit 15e3873dc3)
This commit is contained in:
Daniel Templeton 2017-03-29 10:56:36 -07:00
parent 719ae5f2e8
commit e00ad6fca5
2 changed files with 2 additions and 2 deletions

View File

@ -554,7 +554,7 @@ public class DataStorage extends Storage {
void recoverTransitionRead(DataNode datanode, NamespaceInfo nsInfo, void recoverTransitionRead(DataNode datanode, NamespaceInfo nsInfo,
Collection<StorageLocation> dataDirs, StartupOption startOpt) throws IOException { Collection<StorageLocation> dataDirs, StartupOption startOpt) throws IOException {
if (addStorageLocations(datanode, nsInfo, dataDirs, startOpt).isEmpty()) { if (addStorageLocations(datanode, nsInfo, dataDirs, startOpt).isEmpty()) {
throw new IOException("All specified directories are failed to load."); throw new IOException("All specified directories have failed to load.");
} }
} }

View File

@ -201,7 +201,7 @@ public class TestDataStorage {
fail("An IOException should throw: all StorageLocations are NON_EXISTENT"); fail("An IOException should throw: all StorageLocations are NON_EXISTENT");
} catch (IOException e) { } catch (IOException e) {
GenericTestUtils.assertExceptionContains( GenericTestUtils.assertExceptionContains(
"All specified directories are failed to load.", e); "All specified directories have failed to load.", e);
} }
assertEquals(0, storage.getNumStorageDirs()); assertEquals(0, storage.getNumStorageDirs());
} }