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

zhangduo 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 d77e90c  HBASE-22296 Remove 
TestFromClientSide.testGetStartEndKeysWithRegionReplicas
d77e90c is described below

commit d77e90c00673ad85dd80a7675e79d89647f6fe85
Author: zhangduo <[email protected]>
AuthorDate: Tue Apr 23 22:05:25 2019 +0800

    HBASE-22296 Remove TestFromClientSide.testGetStartEndKeysWithRegionReplicas
---
 .../hadoop/hbase/client/TestFromClientSide.java    | 37 ----------------------
 1 file changed, 37 deletions(-)

diff --git 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java
 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java
index 7f0815f..d590eac 100644
--- 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java
+++ 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java
@@ -6354,43 +6354,6 @@ public class TestFromClientSide {
   }
 
   @Test
-  public void testGetStartEndKeysWithRegionReplicas() throws IOException {
-    HTableDescriptor htd = new 
HTableDescriptor(TableName.valueOf(name.getMethodName()));
-    HColumnDescriptor fam = new HColumnDescriptor(FAMILY);
-    htd.addFamily(fam);
-    byte[][] KEYS = HBaseTestingUtility.KEYS_FOR_HBA_CREATE_TABLE;
-    Admin admin = TEST_UTIL.getAdmin();
-    admin.createTable(htd, KEYS);
-    List<RegionInfo> regions = admin.getRegions(htd.getTableName());
-
-    HRegionLocator locator =
-        (HRegionLocator) 
admin.getConnection().getRegionLocator(htd.getTableName());
-    for (int regionReplication = 1; regionReplication < 4; 
regionReplication++) {
-      List<RegionLocations> regionLocations = new ArrayList<>();
-
-      // mock region locations coming from meta with multiple replicas
-      for (RegionInfo region : regions) {
-        HRegionLocation[] arr = new HRegionLocation[regionReplication];
-        for (int i = 0; i < arr.length; i++) {
-          arr[i] = new 
HRegionLocation(RegionReplicaUtil.getRegionInfoForReplica(region, i), null);
-        }
-        regionLocations.add(new RegionLocations(arr));
-      }
-
-      Pair<byte[][], byte[][]> startEndKeys = getStartEndKeys(regionLocations);
-
-      assertEquals(KEYS.length + 1, startEndKeys.getFirst().length);
-
-      for (int i = 0; i < KEYS.length + 1; i++) {
-        byte[] startKey = i == 0 ? HConstants.EMPTY_START_ROW : KEYS[i - 1];
-        byte[] endKey = i == KEYS.length ? HConstants.EMPTY_END_ROW : KEYS[i];
-        assertArrayEquals(startKey, startEndKeys.getFirst()[i]);
-        assertArrayEquals(endKey, startEndKeys.getSecond()[i]);
-      }
-    }
-  }
-
-  @Test
   public void testFilterAllRecords() throws IOException {
     Scan scan = new Scan();
     scan.setBatch(1);

Reply via email to