yunfengzhou-hub opened a new pull request, #4578: URL: https://github.com/apache/paimon/pull/4578
### Purpose <!-- Linking this pull request to the issue --> Linked issue: #4442 <!-- What is the purpose of the change --> This PR fixes the bug that Consumers might not have been reset yet when the streaming job is closed in test cases. This is because the resetting logic happens in `MonitorFunction#notifyCheckpointComplete`, and Flink does not guarantee the invocation of this method when the job is canceled or stopped. This bug happens rarely in the current test cases because Flink's legacy source function runs independently in a separated thread. When we use FLIP-27 source for MonitorFunction and checkpoint events may pile up in Flink's Mailbox, this bug will be triggered more frequently. ### Tests <!-- List UT and IT cases to verify this change --> Existing test cases are used to verify this change. ### API and Format <!-- Does this change affect API or storage format --> This change does not affect API or storage format. ### Documentation <!-- Does this change introduce a new feature --> This change does not affect introduce a new feature. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
