liuxiaocs7 commented on code in PR #8342:
URL: https://github.com/apache/hbase/pull/8342#discussion_r3402035097


##########
hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestRegionMover2.java:
##########
@@ -112,23 +119,36 @@ public void testWithMergedRegions() throws Exception {
     table.put(puts);
     admin.flush(tableName);
     HRegionServer regionServer = cluster.getRegionServer(0);
+    RegionInfo regionA = 
regionServer.getRegions(tableName).get(0).getRegionInfo();

Review Comment:
   If `regionA` is the last region of the table, in which case its endKey is 
empty, and regionB would then match the first region so we'd end up merging two 
disjoint regions again? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to