Skip to content

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

Merged
shibd merged 1 commit into
apache:branch-2.10from
shibd:fix_history_kafka_source
Jul 18, 2023
Merged

[fix][io][branch-2.10] Not restart instance when kafka source poll exception.#20816
shibd merged 1 commit into
apache:branch-2.10from
shibd:fix_history_kafka_source

Conversation

@shibd

@shibd shibd commented Jul 16, 2023

Copy link
Copy Markdown
Member

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 requested review from RobertIndie and poorbarcode July 16, 2023 12:05
@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 force-pushed the fix_history_kafka_source branch from 9451cc3 to b769c6a Compare July 16, 2023 13:05
@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