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

sink: replace Kafka client with confluent-kafka-go #844

Merged
merged 23 commits into from
Jan 23, 2025

Conversation

wk989898
Copy link
Collaborator

@wk989898 wk989898 commented Jan 9, 2025

What problem does this PR solve?

Issue Number: close #832

What is changed and how it works?

confluent-kafka-go is a lightweight wrapper around librdkafka, a finely tuned C client.

Notice

  1. confluent-kafka-go only supports async producer, we implement sync producer by channel.
  2. confluent-kafka-go does not support mock producers.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Questions

Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?

Release note

`None`.

@3AceShowHand
Copy link
Collaborator

please split this into multiple small PRs:

  1. remove kafka-go implementation
  2. add confluentic-kafka-go implementation
  3. remove sarama implementaion

@wk989898
Copy link
Collaborator Author

please split this into multiple small PRs:

  1. remove kafka-go implementation
  2. add confluentic-kafka-go implementation
  3. remove sarama implementaion

Most of files are deleted and there is no need to split.

@wk989898 wk989898 marked this pull request as ready for review January 13, 2025 06:28
@wk989898 wk989898 requested a review from 3AceShowHand January 13, 2025 06:29
go.mod Show resolved Hide resolved
@ti-chi-bot ti-chi-bot bot added the lgtm label Jan 16, 2025
Copy link

ti-chi-bot bot commented Jan 16, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-01-16 10:08:36.136087149 +0000 UTC m=+199587.591133295: ☑️ agreed by 3AceShowHand.

@ti-chi-bot ti-chi-bot bot added the approved label Jan 16, 2025
if err != nil {
return "", errors.Trace(err)
}
controllerID := response.Brokers[0].ID
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it sure that the first broker is the controller ?

@ti-chi-bot ti-chi-bot bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jan 20, 2025
Copy link

ti-chi-bot bot commented Jan 21, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 3AceShowHand

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@wk989898
Copy link
Collaborator Author

/check-issue-triage-complete

@ti-chi-bot ti-chi-bot bot merged commit 492437c into pingcap:master Jan 23, 2025
10 of 12 checks passed
wk989898 added a commit to wk989898/ticdc that referenced this pull request Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kafka client is not robust
2 participants