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

kafka-4866: Kafka console consumer property is ignored #2661

Closed
wants to merge 7 commits into from
Closed

kafka-4866: Kafka console consumer property is ignored #2661

wants to merge 7 commits into from

Conversation

huxihx
Copy link
Contributor

@huxihx huxihx commented Mar 9, 2017

Added print.value config in ConsoleConsumer to match what the quickstart document says.

Added `print.value` config in ConsoleConsumer to match what the quickstart document says.
@huxihx
Copy link
Contributor Author

huxihx commented Mar 9, 2017

@ijuma a minor improvement. Please review. Thanks.

@asfbot
Copy link

asfbot commented Mar 9, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2098/
Test PASSed (JDK 8 and Scala 2.11).

@asfbot
Copy link

asfbot commented Mar 9, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2095/
Test PASSed (JDK 7 and Scala 2.10).

@asfbot
Copy link

asfbot commented Mar 9, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2096/
Test PASSed (JDK 8 and Scala 2.12).

@ijuma
Copy link
Contributor

ijuma commented Mar 10, 2017

Thanks for the PR, can we add a test please?

Add test in ConsoleConsumerTest#shouldParseValidNewSimpleConsumerValidConfigWithStringOffset for explicitly setting `print.value` to false during issuing ConsoleConsumer command
@huxihx
Copy link
Contributor Author

huxihx commented Mar 20, 2017

@ijuma sorry for the delay. Added a test item in shouldParseValidNewSimpleConsumerValidConfigWithStringOffset method for explicitly setting print.value to false. Could you review again? Thanks.

@asfbot
Copy link

asfbot commented Mar 20, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2267/
Test PASSed (JDK 7 and Scala 2.10).

@asfbot
Copy link

asfbot commented Mar 20, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2267/
Test PASSed (JDK 8 and Scala 2.12).

@asfbot
Copy link

asfbot commented Mar 20, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2270/
Test PASSed (JDK 8 and Scala 2.11).

@huxihx
Copy link
Contributor Author

huxihx commented Mar 26, 2017

@ijuma Do you have any chances to review the PR?

@huxihx
Copy link
Contributor Author

huxihx commented Mar 28, 2017

@hachikuji Could you help review this PR? Thanks

if (printValue) {
write(valueDeserializer, value, lineSeparator)
} else {
write(None, "".getBytes(), lineSeparator)
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't it better to do output.write(lineSeparator) instead?

Addressed Ijuma's comments, outputing a lineSeparator instead of invoking 'write'
@huxihx
Copy link
Contributor Author

huxihx commented Mar 31, 2017

@ijuma Sounds good. Already addressed your comments. Please review again.

@asfbot
Copy link

asfbot commented Mar 31, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2566/
Test PASSed (JDK 8 and Scala 2.11).

@asfbot
Copy link

asfbot commented Mar 31, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2562/
Test PASSed (JDK 7 and Scala 2.10).

@asfbot
Copy link

asfbot commented Mar 31, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2562/
Test PASSed (JDK 8 and Scala 2.12).

@@ -455,7 +458,11 @@ class DefaultMessageFormatter extends MessageFormatter {
}

if (printKey) write(keyDeserializer, key, keySeparator)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should not output keySeparator is we are not printing values?

Added a helper function `outputSeparator` to cover all the seven situation where printTimestamp, printKey and printValue are set with different values.
@huxihx
Copy link
Contributor Author

huxihx commented Apr 5, 2017

@ijuma Added a helper function outputSeparator to cover all the 7 situations where printTimestamp, printKey and printValue are set with different values.

@asfbot
Copy link

asfbot commented Apr 5, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2726/
Test FAILed (JDK 7 and Scala 2.10).

@asfbot
Copy link

asfbot commented Apr 5, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2726/
Test FAILed (JDK 8 and Scala 2.12).

@asfbot
Copy link

asfbot commented Apr 5, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2730/
Test FAILed (JDK 8 and Scala 2.11).

@asfbot
Copy link

asfbot commented Apr 5, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2731/
Test FAILed (JDK 8 and Scala 2.11).

@asfbot
Copy link

asfbot commented Apr 5, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2727/
Test FAILed (JDK 8 and Scala 2.12).

@asfbot
Copy link

asfbot commented Apr 5, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2727/
Test FAILed (JDK 7 and Scala 2.10).

@asfbot
Copy link

asfbot commented Apr 5, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2728/
Test FAILed (JDK 7 and Scala 2.10).

@asfbot
Copy link

asfbot commented Apr 5, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2732/
Test FAILed (JDK 8 and Scala 2.11).

@asfbot
Copy link

asfbot commented Apr 5, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2728/
Test FAILed (JDK 8 and Scala 2.12).

@asfbot
Copy link

asfbot commented Apr 5, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2729/
Test FAILed (JDK 7 and Scala 2.10).

@asfbot
Copy link

asfbot commented Apr 5, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2733/
Test PASSed (JDK 8 and Scala 2.11).

@asfbot
Copy link

asfbot commented Apr 5, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2729/
Test PASSed (JDK 8 and Scala 2.12).

@huxihx
Copy link
Contributor Author

huxihx commented Apr 10, 2017

@ijuma Did you get any chance to review the new merged code? Thanks in advance.

@asfbot
Copy link

asfbot commented Apr 10, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2845/
Test PASSed (JDK 7 and Scala 2.10).

@asfbot
Copy link

asfbot commented Apr 10, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2849/
Test PASSed (JDK 8 and Scala 2.11).

@asfbot
Copy link

asfbot commented Apr 10, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2845/
Test PASSed (JDK 8 and Scala 2.12).

@asfgit asfgit closed this in 8e7516e Apr 11, 2017
@ijuma
Copy link
Contributor

ijuma commented Apr 11, 2017

Thanks for the PR, LGTM. Merged to trunk after some minor tweaks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants