[
https://issues.apache.org/jira/browse/HBASE-12181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14160644#comment-14160644
]
Andrew Purtell commented on HBASE-12181:
----------------------------------------
You can also add
{code}
TEST_UTIL.waitUntilAllRegionsAssigned(TEST_TABLE.getTableName());
{code}
> Some tests create a table and try to use it before regions get assigned
> -----------------------------------------------------------------------
>
> Key: HBASE-12181
> URL: https://issues.apache.org/jira/browse/HBASE-12181
> Project: HBase
> Issue Type: Bug
> Affects Versions: 1.0.0, 2.0.0, 0.98.6.1
> Reporter: Dima Spivak
> Assignee: Dima Spivak
>
> I inadvertently did some unit test stress testing this weekend by running
> {{mvn test -P runAllTests}} on a machine that also had other processes going
> on. The overall sluggishness led to a number of failed tests that were caused
> by a table being created using HBaseAdmin#createTable, which only blocks for
> meta to get updated and not for the region to actually get assigned a
> RegionServer. Quick fix is to use HBaseTestingUtility#createTable whenever
> possible.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)