Skip to content

Commit

Permalink
HBASE-28126 Update MaxNumberOfRegionsCount in TestSimpleRegionNormali…
Browse files Browse the repository at this point in the history
…zer (#5446)

Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
(cherry picked from commit 3bf3b96)
petersomogyi committed Oct 3, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f3717d4 commit 05302a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -533,7 +533,7 @@ public void testHonorsMergeRequestMaxNumberOfRegionsCountDefault() {
final List<RegionInfo> regionInfos = createRegionInfos(tableName, 3);
final Map<byte[], Integer> regionSizes = createRegionSizesMap(regionInfos, 0, 0, 0);
setupMocksForNormalizer(regionSizes, regionInfos);
assertEquals(50, normalizer.getMergeRequestMaxNumberOfRegionsCount());
assertEquals(100, normalizer.getMergeRequestMaxNumberOfRegionsCount());
List<NormalizationPlan> plans = normalizer.computePlansForTable(tableDescriptor);
assertThat(plans, contains(new MergeNormalizationPlan.Builder().addTarget(regionInfos.get(0), 0)
.addTarget(regionInfos.get(1), 0).addTarget(regionInfos.get(2), 0).build()));

0 comments on commit 05302a6

Please sign in to comment.