[ https://issues.apache.org/jira/browse/HBASE-12149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manukranth Kolloju updated HBASE-12149: --------------------------------------- Attachment: 0001-Split-TestRegionPlacement.patch By making TestRegionPlacement.testRegionPlacement fail by simply inserting a fail() statement in the function TestRegionPlacement#killRandomServerAndVerifyAssignment towards the end when it is verifying, we see that this failure causes the other 2 tests(TestRegionPlacement#testFavoredNodesPresentForRoundRobinAssignment, TestRegionPlacement#testFavoredNodesPresentForRandomAssignment to fail without a reason. This shows that the RegionPlacement#testRegionPlacement can be moved to Test Class of its own. > TestRegionPlacement is failing undeterministically > -------------------------------------------------- > > Key: HBASE-12149 > URL: https://issues.apache.org/jira/browse/HBASE-12149 > Project: HBase > Issue Type: Bug > Components: test > Affects Versions: 1.0.0 > Reporter: Manukranth Kolloju > Assignee: Manukranth Kolloju > Priority: Minor > Fix For: 1.0.0 > > Attachments: 0001-Split-TestRegionPlacement.patch > > Original Estimate: 168h > Remaining Estimate: 168h > > TestRegionPlacement has tests that are flaky and fail in a cascading fashion. > We need to fix this cascading behavior and also fix the flakyness of the > tests. > 16:20:59 java.lang.AssertionError: Region {ENCODED => > 958cbbb4405e3bbcfd04185538912d4c, NAME => > 'testRegionAssignment,\x02\x02\x02,1412205636586.958cbbb4405e3bbcfd04185538912d4c.', > STARTKEY => '\x02\x02\x02', ENDKEY => '\x03\x03\x03'} not present on any of > the expected servers > 16:20:59 at org.junit.Assert.fail(Assert.java:88) > 16:20:59 at > org.apache.hadoop.hbase.master.TestRegionPlacement.killRandomServerAndVerifyAssignment(TestRegionPlacement.java:347) > 16:20:59 at > org.apache.hadoop.hbase.master.TestRegionPlacement.testRegionPlacement(TestRegionPlacement.java:270) > 16:20:59 > 16:20:59 > testFavoredNodesPresentForRoundRobinAssignment(org.apache.hadoop.hbase.master.TestRegionPlacement) > Time elapsed: 0.047 sec <<< ERROR! > 16:20:59 java.lang.ArrayIndexOutOfBoundsException: 9 > 16:20:59 at > java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:368) > 16:20:59 at > java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:377) > 16:20:59 at > org.apache.hadoop.hbase.LocalHBaseCluster.getRegionServer(LocalHBaseCluster.java:237) > 16:20:59 at > org.apache.hadoop.hbase.MiniHBaseCluster.getRegionServer(MiniHBaseCluster.java:609) > 16:20:59 at > org.apache.hadoop.hbase.master.TestRegionPlacement.testFavoredNodesPresentForRoundRobinAssignment(TestRegionPlacement.java:113) > 16:20:59 > 16:20:59 > testFavoredNodesPresentForRandomAssignment(org.apache.hadoop.hbase.master.TestRegionPlacement) > Time elapsed: 0.041 sec <<< ERROR! > 16:20:59 java.lang.ArrayIndexOutOfBoundsException: 9 > 16:20:59 at > java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:368) > 16:20:59 at > java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:377) > 16:20:59 at > org.apache.hadoop.hbase.LocalHBaseCluster.getRegionServer(LocalHBaseCluster.java:237) > 16:20:59 at > org.apache.hadoop.hbase.MiniHBaseCluster.getRegionServer(MiniHBaseCluster.java:609) > 16:20:59 at > org.apache.hadoop.hbase.master.TestRegionPlacement.testFavoredNodesPresentForRandomAssignment(TestRegionPlacement.java:173) -- This message was sent by Atlassian JIRA (v6.3.4#6332)