HDFS-11571. Typo in DataStorage exception message (Contributed by Anna Budai via Daniel Templeton)
This commit is contained in:
parent
523f467d93
commit
15e3873dc3
@ -543,7 +543,7 @@ synchronized void removeVolumes(
|
|||||||
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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ public void testRecoverTransitionReadFailure() throws IOException {
|
|||||||
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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user