[
https://issues.apache.org/jira/browse/HBASE-13606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nick Dimiduk updated HBASE-13606:
---------------------------------
Attachment:
TEST-org.apache.hadoop.hbase.master.procedure.TestCreateTableProcedure.xml
Even with rerun flaky enabled, I'm seeing TestCreateTableProcedure failing out.
From the description, this seems related
{noformat}
$ mvn clean -PrunAllTests -DreuseForks=false install
-Dmaven.test.redirectTestOutputToFile=true -Dit.test=noItTest
-Dsurefire.rerunFailingTestsCount=2
...
org.apache.hadoop.hbase.master.procedure.TestCreateTableProcedure.testSimpleCreateWithSplits(org.apache.hadoop.hbase.master.procedure.TestCreateTableProcedure)
Run 1:
TestCreateTableProcedure.testSimpleCreateWithSplits:108->testSimpleCreate:114
f1 family dir does not exist
Run 2:
TestCreateTableProcedure.testSimpleCreateWithSplits:108->testSimpleCreate:114
f1 family dir does not exist
Run 3:
TestCreateTableProcedure.testSimpleCreateWithSplits:108->testSimpleCreate:114
f1 family dir does not exist
f1 family dir does not exist"
type="java.lang.AssertionError">java.lang.AssertionError: f1 family dir does
not exist
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at
org.apache.hadoop.hbase.master.procedure.MasterProcedureTestingUtility.validateTableCreation(MasterProcedureTestingUtility.java:105)
at
org.apache.hadoop.hbase.master.procedure.MasterProcedureTestingUtility.validateTableCreation(MasterProcedureTestingUtility.java:86)
at
org.apache.hadoop.hbase.master.procedure.TestCreateTableProcedure.testSimpleCreate(TestCreateTableProcedure.java:114)
at
org.apache.hadoop.hbase.master.procedure.TestCreateTableProcedure.testSimpleCreateWithSplits(TestCreateTableProcedure.java:108)
{noformat}
> AssignmentManager.assign() is not sync in both path
> ---------------------------------------------------
>
> Key: HBASE-13606
> URL: https://issues.apache.org/jira/browse/HBASE-13606
> Project: HBase
> Issue Type: Bug
> Components: Region Assignment
> Affects Versions: 2.0.0, 1.1.0, 1.2.0
> Reporter: Matteo Bertozzi
> Assignee: Matteo Bertozzi
> Fix For: 2.0.0, 1.1.0, 1.2.0
>
> Attachments: HBASE-13606-v0.patch, HBASE-13606-v1-branch-1.patch,
> HBASE-13606-v1.patch,
> TEST-org.apache.hadoop.hbase.master.procedure.TestCreateTableProcedure.xml
>
>
> from the comment and the expected behavior AssignmentManager.assign() should
> be sync
> {code}
> /** Assigns specified regions round robin, if any.
> * This is a synchronous call and will return once every region has been
> public void assign(List<HRegionInfo> regions)
> {code}
> but the code has two path. 1 sync and the async
> {code}
> if (servers == 1 || (regions < bulkAssignThresholdRegions
> && servers < bulkAssignThresholdServers)) {
> for (HRegionInfo region: plan.getValue()) {
> ...
> invokeAssign(region); // <-- this is async threadPool.submit(assign)
> ...
> }
> } else {
> BulkAssigner ba = new GeneralBulkAssigner(...);
> ba.bulkAssign(); // <-- this is sync, calls BulkAssign.waitUntilDone()
> }
> {code}
> https://builds.apache.org/job/HBase-1.1/452/ TestCreateTableProcedure is
> flaky because of this async behavior
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)