Skip to content

Commit

Permalink
[core] Ensure triggerCompaction in RecordWriter.isCompacting
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Nov 22, 2024
1 parent c907544 commit 2a15809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ public CommitIncrement prepareCommit(boolean waitCompaction) throws Exception {

@Override
public boolean isCompacting() {
compactManager.triggerCompaction(false);
return compactManager.isCompacting();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ public CommitIncrement prepareCommit(boolean waitCompaction) throws Exception {

@Override
public boolean isCompacting() {
compactManager.triggerCompaction(false);
return compactManager.isCompacting();
}

Expand Down

0 comments on commit 2a15809

Please sign in to comment.