Skip to content

Commit

Permalink
[FLINK-36395][runtime] Drain async state processing when operator finish
Browse files Browse the repository at this point in the history
  • Loading branch information
Zakelly committed Sep 29, 2024
1 parent 3f2fd23 commit 2ad98ca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,12 @@ RecordContext getCurrentProcessingContext() {
return currentProcessingContext;
}

@Override
public void finish() throws Exception {
super.finish();
asyncExecutionController.drainInflightRecords(0);
}

@Override
public void close() throws Exception {
super.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ public RecordContext getCurrentProcessingContext() {
return currentProcessingContext;
}

@Override
public void finish() throws Exception {
super.finish();
asyncExecutionController.drainInflightRecords(0);
}

@Override
public void close() throws Exception {
super.close();
Expand Down

0 comments on commit 2ad98ca

Please sign in to comment.