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 (apache#2465)

Fix the bug: apache#2464  [Bug]: AMS will repeat trigger the same minor optimize when the bucket > self-optimizing.minor.trigger.file-count
  • Loading branch information
GavinH1984 authored and ShawHee committed Dec 29, 2023
1 parent 7098c23 commit d75ee3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,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 d75ee3c

Please sign in to comment.