hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-13285) Fix flaky getRegions() in TestAccessController.setUp()
Date Thu, 19 Mar 2015 20:40:38 GMT

    [ https://issues.apache.org/jira/browse/HBASE-13285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14370073#comment-14370073
] 

Hudson commented on HBASE-13285:
--------------------------------

SUCCESS: Integrated in HBase-TRUNK #6280 (See [https://builds.apache.org/job/HBase-TRUNK/6280/])
HBASE-13285 Fix flaky getRegions() in TestAccessController.setUp() (matteo.bertozzi: rev 6a95dd35511f4216481d8d0ffd4952ed1893a1c4)
* hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java


> Fix flaky getRegions() in TestAccessController.setUp()
> ------------------------------------------------------
>
>                 Key: HBASE-13285
>                 URL: https://issues.apache.org/jira/browse/HBASE-13285
>             Project: HBase
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 1.0.0, 2.0.0, 1.1.0, 0.98.12
>            Reporter: Matteo Bertozzi
>            Assignee: Matteo Bertozzi
>            Priority: Minor
>             Fix For: 2.0.0, 1.0.1, 1.1.0, 0.98.13
>
>         Attachments: HBASE-13285-v0.patch
>
>
> TestAccessController is waiting on table to be enabled and after that tries to lookup
the region. but if the machine is slow, that region may not be assigned yet.
> {code}
> TEST_UTIL.waitTableEnabled(TEST_TABLE.getTableName());
> HRegion region = TEST_UTIL.getHBaseCluster().getRegions(TEST_TABLE.getTableName()).get(0);
> {code}
> {noformat}
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> 	at java.util.ArrayList.rangeCheck(ArrayList.java:635)
> 	at java.util.ArrayList.get(ArrayList.java:411)
> 	at org.apache.hadoop.hbase.security.access.TestAccessController.setUp(TestAccessController.java:235)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message