hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yiqun Lin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-13210) Fix the typo in MiniDFSCluster class
Date Thu, 01 Mar 2018 04:08:00 GMT
Yiqun Lin created HDFS-13210:

             Summary: Fix the typo in MiniDFSCluster class 
                 Key: HDFS-13210
                 URL: https://issues.apache.org/jira/browse/HDFS-13210
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: test
    Affects Versions: 3.0.0
            Reporter: Yiqun Lin

There is a typo {{SimilatedFSDataset}} in {{MiniDFSCluster#injectBlocks}}.
In line2748 and line2749:
public void injectBlocks(int dataNodeIndex,
      Iterable<Block> blocksToInject, String bpid) throws IOException {
    if (dataNodeIndex < 0 || dataNodeIndex > dataNodes.size()) {
      throw new IndexOutOfBoundsException();
    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");
{{SimilatedFSDataset}} should be {{SimulatedFSDataset}}.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org

View raw message