Skip to content

KAFKA-4806: Prevent double logging of ConsumerConfig. #2600

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

Closed
wants to merge 1 commit into from
Closed

KAFKA-4806: Prevent double logging of ConsumerConfig. #2600

wants to merge 1 commit into from

Conversation

Gacko
Copy link
Contributor

@Gacko Gacko commented Feb 26, 2017

The consumer properties get logged twice since two instances of ConsumerConfig are created during creation of KafkaConsumer.

I added a constructor of ConsumerConfig accepting the boolean parameter doLog which is already passable in AbstractConfig and set it to false during the second ConsumerConfig creating in the KafkaConsumer constructor.

@asfbot
Copy link

asfbot commented Feb 26, 2017

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

@asfbot
Copy link

asfbot commented Feb 26, 2017

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

@asfbot
Copy link

asfbot commented Feb 26, 2017

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

@Gacko
Copy link
Contributor Author

Gacko commented Feb 27, 2017

JDK 8 + Scala 2.12 unit tests were broken before, right?

Copy link
Member

@ijuma ijuma left a 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.

The failing test in the 2.12 build is a transient failure, it passes normally.

asfgit pushed a commit that referenced this pull request Feb 27, 2017
The consumer properties get logged twice since two instances
of ConsumerConfig are created during creation of KafkaConsumer.

I added a constructor of ConsumerConfig accepting the boolean
parameter doLog which is already passable in AbstractConfig
and set it to false during the second ConsumerConfig creating
in the KafkaConsumer constructor.

Author: Marco Ebert <[email protected]>

Reviewers: Ismael Juma <[email protected]>

Closes #2600 from Gacko/trunk

(cherry picked from commit 9260e85)
Signed-off-by: Ismael Juma <[email protected]>
@asfgit asfgit closed this in 9260e85 Feb 27, 2017
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