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-3.0] Not restart instance when kafka source poll exception. #20818

Merged
merged 2 commits into from Jul 17, 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 added type/bug The PR fixed a bug or issue reported a bug ready-to-test release/3.0.2 labels Jul 16, 2023
@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 merged commit 9d580b4 into apache:branch-3.0 Jul 17, 2023
44 checks passed
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 13, 2024
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 17, 2024
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 19, 2024
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked/branch-3.0 doc-not-needed Your PR changes do not impact docs ready-to-test release/3.0.2 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.

None yet

4 participants