HBASE-24118 [Flakey Tests] TestCloseRegionWhileRSCrash

Addendum; add back bit missing off end of test.
This commit is contained in:
stack 2020-05-05 21:14:34 -07:00
parent 3d96007c37
commit 24c995da97
1 changed files with 5 additions and 0 deletions

View File

@ -202,5 +202,10 @@ public class TestCloseRegionWhileRSCrash {
try (Table table = UTIL.getConnection().getTable(TABLE_NAME)) { try (Table table = UTIL.getConnection().getTable(TABLE_NAME)) {
table.put(new Put(Bytes.toBytes(1)).addColumn(CF, Bytes.toBytes("cq"), Bytes.toBytes(1))); 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)));
}
} }
} }