You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2020/05/06 04:16:39 UTC

[hbase] branch branch-2.3 updated: HBASE-24118 [Flakey Tests] TestCloseRegionWhileRSCrash Addendum; add back bit missing off end of test.

This is an automated email from the ASF dual-hosted git repository.

stack pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.3 by this push:
     new db3d42b  HBASE-24118 [Flakey Tests] TestCloseRegionWhileRSCrash Addendum; add back bit missing off end of test.
db3d42b is described below

commit db3d42bd9a06680f1ebc1639040d510353f828c9
Author: stack <st...@apache.org>
AuthorDate: Tue May 5 21:14:34 2020 -0700

    HBASE-24118 [Flakey Tests] TestCloseRegionWhileRSCrash
    Addendum; add back bit missing off end of test.
---
 .../hadoop/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 7eb453d..4761991 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)));
+    }
   }
 }