You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by vj...@apache.org on 2020/08/03 14:57:53 UTC
[hbase] branch master updated: HBASE-24795 :
TestRegionMover2#testWithSplitRegions fix (ADDENDUM)
This is an automated email from the ASF dual-hosted git repository.
vjasani pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new 9ec484a HBASE-24795 : TestRegionMover2#testWithSplitRegions fix (ADDENDUM)
9ec484a is described below
commit 9ec484a0310f44987280fd94757485f9859fef2c
Author: Viraj Jasani <vj...@apache.org>
AuthorDate: Mon Aug 3 20:12:25 2020 +0530
HBASE-24795 : TestRegionMover2#testWithSplitRegions fix (ADDENDUM)
---
.../src/test/java/org/apache/hadoop/hbase/util/TestRegionMover2.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestRegionMover2.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestRegionMover2.java
index 743fa99..6007fd7 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestRegionMover2.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestRegionMover2.java
@@ -160,6 +160,9 @@ public class TestRegionMover2 {
Assert.assertEquals(0, regionServer.getNumberOfOnlineRegions());
LOG.debug("Successfully Unloaded, now Loading");
HRegion hRegion = hRegions.get(1);
+ if (hRegion.getRegionInfo().getStartKey().length == 0) {
+ hRegion = hRegions.get(0);
+ }
int startKey = 0;
int endKey = Integer.MAX_VALUE;
if (hRegion.getRegionInfo().getStartKey().length > 0) {