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: Make new consumer default for Mirror Maker #1914
Conversation
Review by @ijuma. This is a followup for KAFKA-3282. |
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.
Thanks for the PR, LGTM, just left a nitpick. Have you run the system tests to make sure they pass after your changes?
if (useOldConsumer) { | ||
if (options.has(useNewConsumerOpt)) { | ||
error(s"The consumer configuration parameter `${ZKConfig.ZkConnectProp}` is not valid when using --new.consumer") | ||
System.exit(1) |
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.
Nitpick: in scala sys.exit
is slightly better than System.exit
because it tells the type system that the method returns Nothing
. In this case, it doesn't matter, but if you had an if/else
for example, it would.
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.
Sounds sensible to me. I'll fix it.
@ijuma Updated. I did run MM system tests here: http://testing.confluent.io/confluent-kafka-branch-builder-system-test-results/?prefix=2016-09-27--001.1474950996--hachikuji--mm-default-new-consumer--e58dceb/. I also ran replication tests to verify that removing the "--new-consumer" flag worked correctly in the console consumer service: http://testing.confluent.io/confluent-kafka-branch-builder-system-test-results/?prefix=2016-09-27--001.1474959619--hachikuji--mm-default-new-consumer--e58dceb/. |
Thanks for the PR, LGTM. Merged to trunk and 0.10.1. |
No description provided.