Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][io][branch-2.10] Not restart instance when kafka source poll exception. #20816

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

shibd
Copy link
Member

@shibd shibd commented Jul 16, 2023

Motivation

When Kafka source poll message exception, it will throw it to the function framework, and not trigger the restart function instance.

#20795 uses a new method on PulsarSource #20791 to fix it on master branch. To maintain compatibility, we can't cherry-pick it to the historical version, so the class is implemented in the Kafka source connector.

Modifications

  • Let consumer.subscribe run on the start thread, which can quickly fail when subscribe exception.
  • Add new class KafkaPushSource on Kafka source connector.
  • When Kafka consumer exception, it will call notifyError to report the exception to the io connector framework.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

@shibd shibd self-assigned this Jul 16, 2023
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jul 16, 2023
@shibd shibd added release/2.10.5 type/bug The PR fixed a bug or issue reported a bug labels Jul 16, 2023
@shibd shibd merged commit 4a894af into apache:branch-2.10 Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked/branch-2.10 doc-not-needed Your PR changes do not impact docs release/2.10.6 type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants