From 24c995da97b6ee7675ace5e4a44269dba5ccf4c9 Mon Sep 17 00:00:00 2001 From: stack Date: Tue, 5 May 2020 21:14:34 -0700 Subject: [PATCH] HBASE-24118 [Flakey Tests] TestCloseRegionWhileRSCrash Addendum; add back bit missing off end of test. --- .../hbase/master/assignment/TestCloseRegionWhileRSCrash.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestCloseRegionWhileRSCrash.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestCloseRegionWhileRSCrash.java index 7eb453d271c..4761991e75b 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestCloseRegionWhileRSCrash.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestCloseRegionWhileRSCrash.java @@ -202,5 +202,10 @@ public class TestCloseRegionWhileRSCrash { try (Table table = UTIL.getConnection().getTable(TABLE_NAME)) { table.put(new Put(Bytes.toBytes(1)).addColumn(CF, Bytes.toBytes("cq"), Bytes.toBytes(1))); } + // Make sure that the region is online, it may not be on the original target server, as we will + // set forceNewPlan to true if there is a server crash. + try (Table table = UTIL.getConnection().getTable(TABLE_NAME)) { + table.put(new Put(Bytes.toBytes(1)).addColumn(CF, Bytes.toBytes("cq"), Bytes.toBytes(1))); + } } }