[ 
https://issues.apache.org/jira/browse/HBASE-24118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Stack reopened HBASE-24118:
-----------------------------------

Reopening. I needed to undo more; add back the problematic bit:

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 7eb453d271..4761991e75 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)));
+    }
   }
 }

> [Flakey Tests] TestCloseRegionWhileRSCrash
> ------------------------------------------
>
>                 Key: HBASE-24118
>                 URL: https://issues.apache.org/jira/browse/HBASE-24118
>             Project: HBase
>          Issue Type: Test
>            Reporter: Michael Stack
>            Assignee: Michael Stack
>            Priority: Major
>             Fix For: 3.0.0-alpha-1, 2.3.0
>
>         Attachments: 
> 0001-HBASE-24118-Flakey-Tests-TestCloseRegionWhileRSCrash.patch
>
>
> TestCloseRegionWhileRSCrash is flakey because of HBASE-24117  -- because 
> moved Region may not online in the end. Remove the last bit of the test...



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to