-
Notifications
You must be signed in to change notification settings - Fork 130
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
minor update on sarama config #461
Conversation
/run-all-tests |
LGTM |
@GregoryIan PTAL |
kafkaCfg := sarama.NewConfig() | ||
kafkaCfg.Consumer.Return.Errors = true | ||
version, err := sarama.ParseKafkaVersion(kafkaVersion) | ||
kafkaCfg, err := NewSaramaConfig(kafkaVersion, "drainer.") |
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.
can CreateKafkaProducer
also call this rather than sarama.NewConfig()
?
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.
CreateKafkaProducer
is useless now, I removed this function in latest commit.
ping @WangXiangUSTC |
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.
LGTM
What problem does this PR solve?
minor update on sarama config to avoid some useless and confused log.
issue: https://internal.pingcap.net/jira/browse/TOOL-891
What is changed and how it works?
Check List
Tests
Related changes