File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
amoro-ams/src/main/java/org/apache/amoro/server Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -500,6 +500,7 @@ public TableOptimizingProcess(
500500 if (processState .getToSequence () != null ) {
501501 toSequence = processState .getToSequence ();
502502 }
503+ this .status = processMeta .getStatus ();
503504 if (this .status != ProcessStatus .KILLED ) {
504505 tableRuntime .recover (this );
505506 }
Original file line number Diff line number Diff line change 3232import org .apache .amoro .optimizing .plan .AbstractOptimizingEvaluator ;
3333import org .apache .amoro .process .AmoroProcess ;
3434import org .apache .amoro .process .ProcessFactory ;
35+ import org .apache .amoro .process .ProcessStatus ;
3536import org .apache .amoro .process .TableProcessStore ;
3637import org .apache .amoro .server .AmoroServiceConstants ;
3738import org .apache .amoro .server .optimizing .OptimizingProcess ;
@@ -118,6 +119,9 @@ public void recover(OptimizingProcess optimizingProcess) {
118119 throw new IllegalStateException ("Table runtime and processing are not matched!" );
119120 }
120121 this .optimizingProcess = optimizingProcess ;
122+ if (this .optimizingProcess .getStatus () == ProcessStatus .SUCCESS ) {
123+ completeProcess (true );
124+ }
121125 }
122126
123127 @ Override
You can’t perform that action at this time.
0 commit comments