[ https://issues.apache.org/jira/browse/HDFS-13210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16383126#comment-16383126 ]
Hudson commented on HDFS-13210: ------------------------------- FAILURE: Integrated in Jenkins build Hadoop-trunk-Commit #13756 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/13756/]) HDFS-13210. Fix the typo in MiniDFSCluster class. Contributed by fang (yqlin: rev 55669515f626eb5b1f3ba25095f3e306c243d899) * (edit) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java > 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 > Assignee: fang zhenyi > Priority: Trivial > Fix For: 3.2.0 > > Attachments: HDFS-13210.001.patch, HDFS-13210.002.patch, > HDFS-13210.003.patch > > > There is a typo {{SimilatedFSDataset}} in {{MiniDFSCluster#injectBlocks}}. > In line2748 and line2769: > {code:java} > 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"); > } > ... > } > {code} > {{SimilatedFSDataset}} should be {{SimulatedFSDataset}}. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org