HDFS-13210. Fix the typo in MiniDFSCluster class. Contributed by fang zhenyi.

This commit is contained in:
Yiqun Lin 2018-03-02 11:49:12 +08:00
parent 923e1773e1
commit 55669515f6
1 changed files with 4 additions and 2 deletions

View File

@ -2745,7 +2745,8 @@ public class MiniDFSCluster implements AutoCloseable {
final DataNode dn = dataNodes.get(dataNodeIndex).datanode;
final FsDatasetSpi<?> dataSet = DataNodeTestUtils.getFSDataset(dn);
if (!(dataSet instanceof SimulatedFSDataset)) {
throw new IOException("injectBlocks is valid only for SimilatedFSDataset");
throw new IOException("injectBlocks is valid only for" +
" SimulatedFSDataset");
}
if (bpid == null) {
bpid = getNamesystem().getBlockPoolId();
@ -2766,7 +2767,8 @@ public class MiniDFSCluster implements AutoCloseable {
final DataNode dn = dataNodes.get(dataNodeIndex).datanode;
final FsDatasetSpi<?> dataSet = DataNodeTestUtils.getFSDataset(dn);
if (!(dataSet instanceof SimulatedFSDataset)) {
throw new IOException("injectBlocks is valid only for SimilatedFSDataset");
throw new IOException("injectBlocks is valid only for" +
" SimulatedFSDataset");
}
String bpid = getNamesystem(nameNodeIndex).getBlockPoolId();
SimulatedFSDataset sdataset = (SimulatedFSDataset) dataSet;