HDFS-11571. Typo in DataStorage exception message (Contributed by Anna Budai via Daniel Templeton)
(cherry picked from commit 15e3873dc3
)
This commit is contained in:
parent
719ae5f2e8
commit
e00ad6fca5
|
@ -554,7 +554,7 @@ public class DataStorage extends Storage {
|
|||
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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -201,7 +201,7 @@ public class TestDataStorage {
|
|||
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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue