Skip to content

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

Merged
shibd merged 2 commits intoapache:branch-3.0from
shibd:fix_30_kafka_source
Jul 17, 2023
Merged

[fix][io][branch-3.0] Not restart instance when kafka source poll exception.#20818
shibd merged 2 commits intoapache:branch-3.0from
shibd:fix_30_kafka_source

Conversation

@shibd
Copy link
Copy Markdown
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 requested review from RobertIndie and poorbarcode July 16, 2023 13:38
@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
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.

4 participants