You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "yunfengzhou-hub (via GitHub)" <gi...@apache.org> on 2024/11/25 02:00:22 UTC
[PR] [flink][hotfix] Wait for consumer reset before job close [paimon]
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [flink][hotfix] Wait for consumer reset before job close [paimon]
Posted by "wwj6591812 (via GitHub)" <gi...@apache.org>.
wwj6591812 commented on PR #4578:
URL: https://github.com/apache/paimon/pull/4578#issuecomment-2496543225
Hi, @yunfengzhou-hub .
You means we will use FLIP-27 source to rewrite MonitorFunction?
If yes, I have not see this change in https://github.com/apache/paimon/pull/4567/files.
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [flink][hotfix] Wait for consumer reset before job close [paimon]
Posted by "yunfengzhou-hub (via GitHub)" <gi...@apache.org>.
yunfengzhou-hub commented on PR #4578:
URL: https://github.com/apache/paimon/pull/4578#issuecomment-2496564174
> Hi, @yunfengzhou-hub . You means we will use FLIP-27 source to rewrite MonitorFunction? If yes, I have not see this change in https://github.com/apache/paimon/pull/4567/files.
Hi @wwj6591812 . Yes we will rewrite it. In the PR you mentioned, MonitorFunction is renamed to MonitorSource, as it is not a SourceFunction any more.
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [flink][hotfix] Wait for consumer reset before job close [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #4578:
URL: https://github.com/apache/paimon/pull/4578
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org