Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C229117ED5 for ; Thu, 2 Oct 2014 03:35:34 +0000 (UTC) Received: (qmail 54694 invoked by uid 500); 2 Oct 2014 03:35:34 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 54649 invoked by uid 500); 2 Oct 2014 03:35:34 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 54296 invoked by uid 99); 2 Oct 2014 03:35:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Oct 2014 03:35:34 +0000 Date: Thu, 2 Oct 2014 03:35:33 +0000 (UTC) From: "Manukranth Kolloju (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-12149) TestRegionPlacement is failing undeterministically MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)