[ https://issues.apache.org/jira/browse/HDFS-8209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14513213#comment-14513213 ]
Hadoop QA commented on HDFS-8209: --------------------------------- \\ \\ | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | pre-patch | 5m 6s | Pre-patch trunk compilation is healthy. | | {color:green}+1{color} | @author | 0m 0s | The patch does not contain any @author tags. | | {color:green}+1{color} | tests included | 0m 0s | The patch appears to include 2 new or modified test files. | | {color:red}-1{color} | whitespace | 0m 0s | The patch has 1 line(s) that end in whitespace. | | {color:red}-1{color} | javac | 7m 24s | The applied patch generated 125 additional warning messages. | | {color:green}+1{color} | release audit | 0m 19s | The applied patch does not increase the total number of release audit warnings. | | {color:green}+1{color} | checkstyle | 7m 42s | There were no new checkstyle issues. | | {color:green}+1{color} | install | 1m 32s | mvn install still works. | | {color:green}+1{color} | eclipse:eclipse | 0m 31s | The patch built with eclipse:eclipse. | | {color:green}+1{color} | findbugs | 3m 2s | The patch does not introduce any new Findbugs (version 2.0.3) warnings. | | {color:green}+1{color} | native | 1m 19s | Pre-build of native portion | | {color:red}-1{color} | hdfs tests | 165m 43s | Tests failed in hadoop-hdfs. | | | | 192m 43s | | \\ \\ || Reason || Tests || | Failed unit tests | hadoop.hdfs.server.namenode.TestFsck | | | hadoop.hdfs.TestMiniDFSCluster | \\ \\ || Subsystem || Report/Notes || | Patch URL | http://issues.apache.org/jira/secure/attachment/12728171/HDFS-8209.patch | | Optional Tests | javac unit findbugs checkstyle | | git revision | trunk / 47279c3 | | whitespace | https://builds.apache.org/job/PreCommit-HDFS-Build/10401/artifact/patchprocess/whitespace.txt | | javac | https://builds.apache.org/job/PreCommit-HDFS-Build/10401/artifact/patchprocess/diffJavacWarnings.txt | | hadoop-hdfs test log | https://builds.apache.org/job/PreCommit-HDFS-Build/10401/artifact/patchprocess/testrun_hadoop-hdfs.txt | | Test Results | https://builds.apache.org/job/PreCommit-HDFS-Build/10401/testReport/ | | Console output | https://builds.apache.org/job/PreCommit-HDFS-Build/10401/console | This message was automatically generated. > Support different number of datanode directories in MiniDFSCluster. > ------------------------------------------------------------------- > > Key: HDFS-8209 > URL: https://issues.apache.org/jira/browse/HDFS-8209 > Project: Hadoop HDFS > Issue Type: Improvement > Components: test > Affects Versions: 2.6.0 > Reporter: surendra singh lilhore > Assignee: surendra singh lilhore > Priority: Minor > Attachments: HDFS-8209.patch > > > I want to create MiniDFSCluster with 2 datanode and for each datanode I want > to set different number of StorageTypes, but in this case I am getting > ArrayIndexOutOfBoundsException. > My cluster schema is like this. > {code} > final MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf) > .numDataNodes(2) > .storageTypes(new StorageType[][] {{ > StorageType.DISK, StorageType.ARCHIVE },{ StorageType.DISK } }) > .build(); > {code} > *Exception* : > {code} > java.lang.ArrayIndexOutOfBoundsException: 1 > at > org.apache.hadoop.hdfs.MiniDFSCluster.makeDataNodeDirs(MiniDFSCluster.java:1218) > at > org.apache.hadoop.hdfs.MiniDFSCluster.startDataNodes(MiniDFSCluster.java:1402) > at > org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:832) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)