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

This commit is contained in:
Daniel Templeton 2017-03-29 10:56:36 -07:00
parent 523f467d93
commit 15e3873dc3
2 changed files with 2 additions and 2 deletions

View File

@ -543,7 +543,7 @@ synchronized void removeVolumes(
void recoverTransitionRead(DataNode datanode, NamespaceInfo nsInfo,
Collection<StorageLocation> dataDirs, StartupOption startOpt) throws IOException {
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

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