-
Notifications
You must be signed in to change notification settings - Fork 288
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
chore(ticdc): bump sarama to 1.36.0 to support kafka 3.x #7113
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
208624c
to
195170e
Compare
/run-all-tests |
/run-verify-ci |
cdc/sink/mq/manager/kafka_manager.go
Outdated
@@ -142,7 +142,7 @@ func (m *kafkaTopicManager) getMetadataOfTopics() ([]*sarama.TopicMetadata, erro | |||
topicMetaList, err := m.admin.DescribeTopics(topicList) | |||
if err != nil { | |||
log.Warn( | |||
"Kafka admin client describe topics failed", | |||
"kafka: get topics meta failed", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this log is supposed to be modified, line 153 should also be changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there is a reason to change this. But it's Ok.
By the way, usually, the log is a sentence, so it should be capitalized at the beginning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've revert the log.
I think the log is not informative at the first glance, because describe
is not a intuitive verb.
In the whole code base, most of the log is not capitalized as a sentence, I would prefer not to capitalize it to unify the convention.
Rest LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
cdc/sink/mq/manager/kafka_manager.go
Outdated
@@ -142,7 +142,7 @@ func (m *kafkaTopicManager) getMetadataOfTopics() ([]*sarama.TopicMetadata, erro | |||
topicMetaList, err := m.admin.DescribeTopics(topicList) | |||
if err != nil { | |||
log.Warn( | |||
"Kafka admin client describe topics failed", | |||
"kafka: get topics meta failed", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there is a reason to change this. But it's Ok.
By the way, usually, the log is a sentence, so it should be capitalized at the beginning.
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 11d65c5
|
@3AceShowHand: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
What problem does this PR solve?
Issue Number: close #7191
What is changed and how it works?
bump sarama to v1.36.0 to support Kafka 3.x
we use sarama as the kafka client, by it's release note:
Check List
Tests
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note