From 0ce85fe63cdd845da95007d1b63868a0ee15c8ec Mon Sep 17 00:00:00 2001 From: bsglz <18031031@qq.com> Date: Sat, 23 May 2020 05:14:59 +0800 Subject: [PATCH] HBASE-24407 Correct the comment of clusterRegionLocationMocks in TestStochasticLoadBalancer (#1750) --- .../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 9b8a7b92ef6..a01165d40aa 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 }, };