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/22 21:15:11 UTC

[hbase] branch master updated: HBASE-24407 Correct the comment of clusterRegionLocationMocks in TestStochasticLoadBalancer (#1750)

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

stack 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 0ce85fe  HBASE-24407 Correct the comment of clusterRegionLocationMocks in TestStochasticLoadBalancer (#1750)
0ce85fe is described below

commit 0ce85fe63cdd845da95007d1b63868a0ee15c8ec
Author: bsglz <18...@qq.com>
AuthorDate: Sat May 23 05:14:59 2020 +0800

    HBASE-24407 Correct the comment of clusterRegionLocationMocks in TestStochasticLoadBalancer (#1750)
---
 .../hbase/master/balancer/TestStochasticLoadBalancer.java      | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStochasticLoadBalancer.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStochasticLoadBalancer.java
index 9b8a7b9..a01165d 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStochasticLoadBalancer.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStochasticLoadBalancer.java
@@ -83,7 +83,7 @@ public class TestStochasticLoadBalancer extends BalancerTestBase {
           new int[]{2, 0, 0, 100},   // region 0 is hosted and entirely local on server 2
           new int[]{0, 100, 0, 0},   // region 1 is hosted and entirely on server 0
           new int[]{0, 100, 0, 0},   // region 2 is hosted and entirely on server 0
-          new int[]{1, 0, 100, 0},   // region 1 is hosted and entirely on server 1
+          new int[]{1, 0, 100, 0},   // region 3 is hosted and entirely on server 1
       },
 
       // Test 2: each region is 0% local on the server that hosts it
@@ -92,7 +92,7 @@ public class TestStochasticLoadBalancer extends BalancerTestBase {
           new int[]{0, 0, 0, 100},   // region 0 is hosted and entirely local on server 2
           new int[]{1, 100, 0, 0},   // region 1 is hosted and entirely on server 0
           new int[]{1, 100, 0, 0},   // region 2 is hosted and entirely on server 0
-          new int[]{2, 0, 100, 0},   // region 1 is hosted and entirely on server 1
+          new int[]{2, 0, 100, 0},   // region 3 is hosted and entirely on server 1
       },
 
       // Test 3: each region is 25% local on the server that hosts it (and 50% locality is possible)
@@ -101,7 +101,7 @@ public class TestStochasticLoadBalancer extends BalancerTestBase {
           new int[]{0, 25, 0, 50},   // region 0 is hosted and entirely local on server 2
           new int[]{1, 50, 25, 0},   // region 1 is hosted and entirely on server 0
           new int[]{1, 50, 25, 0},   // region 2 is hosted and entirely on server 0
-          new int[]{2, 0, 50, 25},   // region 1 is hosted and entirely on server 1
+          new int[]{2, 0, 50, 25},   // region 3 is hosted and entirely on server 1
       },
 
       // Test 4: each region is 25% local on the server that hosts it (and 100% locality is possible)
@@ -110,7 +110,7 @@ public class TestStochasticLoadBalancer extends BalancerTestBase {
           new int[]{0, 25, 0, 100},   // region 0 is hosted and entirely local on server 2
           new int[]{1, 100, 25, 0},   // region 1 is hosted and entirely on server 0
           new int[]{1, 100, 25, 0},   // region 2 is hosted and entirely on server 0
-          new int[]{2, 0, 100, 25},   // region 1 is hosted and entirely on server 1
+          new int[]{2, 0, 100, 25},   // region 3 is hosted and entirely on server 1
       },
 
       // Test 5: each region is 75% local on the server that hosts it (and 75% locality is possible everywhere)
@@ -119,7 +119,7 @@ public class TestStochasticLoadBalancer extends BalancerTestBase {
           new int[]{0, 75, 75, 75},   // region 0 is hosted and entirely local on server 2
           new int[]{1, 75, 75, 75},   // region 1 is hosted and entirely on server 0
           new int[]{1, 75, 75, 75},   // region 2 is hosted and entirely on server 0
-          new int[]{2, 75, 75, 75},   // region 1 is hosted and entirely on server 1
+          new int[]{2, 75, 75, 75},   // region 3 is hosted and entirely on server 1
       },
   };