Skip to content

Commit

Permalink
[AMORO-2464] Fix bug AMS will repeat trigger the same minor optimize …
Browse files Browse the repository at this point in the history
…when the bucket > self-optimizing.minor.trigger.file-count (#2465)

Fix the bug: #2464  [Bug]: AMS will repeat trigger the same minor optimize when the bucket > self-optimizing.minor.trigger.file-count

(cherry picked from commit 8facf5b)
Signed-off-by: zhoujinsong <zhoujinsong0505@163.com>
  • Loading branch information
GavinH1984 authored and zhoujinsong committed Feb 2, 2024
1 parent 03de5ee commit 04bf3cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public boolean isMinorNecessary() {
if (keyedTable) {
int smallFileCount = fragmentFileCount + equalityDeleteFileCount;
int baseSplitCount = getBaseSplitCount();
if (smallFileCount >= Math.max(baseSplitCount, config.getMinorLeastFileCount())) {
if (smallFileCount >= Math.max(baseSplitCount + 1, config.getMinorLeastFileCount())) {
return true;
} else if ((smallFileCount > baseSplitCount || hasChangeFiles) && reachMinorInterval()) {
return true;
Expand Down

0 comments on commit 04bf3cc

Please sign in to comment.