HBASE-24407 Correct the comment of clusterRegionLocationMocks in TestStochasticLoadBalancer (#1750)

This commit is contained in:
bsglz 2020-05-23 05:14:59 +08:00 committed by GitHub
parent e1d7dc82ea
commit 0ce85fe63c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -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
},
};