[ https://issues.apache.org/jira/browse/HDFS-8209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14532221#comment-14532221 ]
Hadoop QA commented on HDFS-8209: --------------------------------- \\ \\ | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | pre-patch | 5m 17s | 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:green}+1{color} | javac | 7m 41s | There were no new javac warning messages. | | {color:green}+1{color} | release audit | 0m 19s | The applied patch does not increase the total number of release audit warnings. | | {color:red}-1{color} | checkstyle | 2m 20s | The applied patch generated 19 new checkstyle issues (total was 734, now 735). | | {color:green}+1{color} | whitespace | 0m 3s | The patch has no lines that end in whitespace. | | {color:green}+1{color} | install | 1m 33s | mvn install still works. | | {color:green}+1{color} | eclipse:eclipse | 0m 33s | The patch built with eclipse:eclipse. | | {color:green}+1{color} | findbugs | 3m 7s | The patch does not introduce any new Findbugs (version 2.0.3) warnings. | | {color:green}+1{color} | native | 1m 20s | Pre-build of native portion | | {color:red}-1{color} | hdfs tests | 82m 37s | Tests failed in hadoop-hdfs. | | | | 104m 55s | | \\ \\ || Reason || Tests || | Failed unit tests | hadoop.hdfs.TestDataTransferKeepalive | | | hadoop.hdfs.server.datanode.TestDatanodeStartupOptions | | Timed out tests | org.apache.hadoop.hdfs.TestDatanodeRegistration | | | org.apache.hadoop.hdfs.server.datanode.TestBlockReplacement | \\ \\ || Subsystem || Report/Notes || | Patch URL | http://issues.apache.org/jira/secure/attachment/12731087/HDFS-8209_1.patch | | Optional Tests | javac unit findbugs checkstyle | | git revision | trunk / 449e442 | | checkstyle | https://builds.apache.org/job/PreCommit-HDFS-Build/10841/artifact/patchprocess/diffcheckstylehadoop-hdfs.txt | | hadoop-hdfs test log | https://builds.apache.org/job/PreCommit-HDFS-Build/10841/artifact/patchprocess/testrun_hadoop-hdfs.txt | | Test Results | https://builds.apache.org/job/PreCommit-HDFS-Build/10841/testReport/ | | Java | 1.7.0_55 | | uname | Linux asf904.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | | Console output | https://builds.apache.org/job/PreCommit-HDFS-Build/10841/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 > Labels: BB2015-05-TBR > Attachments: HDFS-8209.patch, HDFS-8209_1.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)