Skip to content

Commit

Permalink
[AMORO-1869] Avoid evaluating pending input during the optimization p…
Browse files Browse the repository at this point in the history
…rocess (#1997)
  • Loading branch information
XBaith authored Sep 19, 2023
1 parent 8e1e763 commit d06367a
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

package com.netease.arctic.server.table.executor;

import com.netease.arctic.server.optimizing.OptimizingStatus;
import com.netease.arctic.server.optimizing.plan.OptimizingEvaluator;
import com.netease.arctic.server.table.TableManager;
import com.netease.arctic.server.table.TableRuntime;
Expand Down Expand Up @@ -46,14 +45,6 @@ protected long getNextExecutingTime(TableRuntime tableRuntime) {
return Math.min(tableRuntime.getOptimizingConfig().getMinorLeastInterval() * 4L / 5, interval);
}

@Override
public void handleStatusChanged(TableRuntime tableRuntime, OptimizingStatus originalStatus) {
if (originalStatus != null && originalStatus.equals(OptimizingStatus.COMMITTING) &&
tableRuntime.getOptimizingStatus().equals(OptimizingStatus.IDLE)) {
tryEvaluatingPendingInput(tableRuntime, loadTable(tableRuntime));
}
}

private void tryEvaluatingPendingInput(TableRuntime tableRuntime, ArcticTable table) {
if (tableRuntime.isOptimizingEnabled() && !tableRuntime.getOptimizingStatus().isProcessing()) {
OptimizingEvaluator evaluator = new OptimizingEvaluator(tableRuntime, table);
Expand Down

0 comments on commit d06367a

Please sign in to comment.