Skip to content

KAFKA-2419 - Fix to prevent background thread from getting created when not required#323

Closed
auradkar wants to merge 1 commit into
apache:trunkfrom
auradkar:KAFKA-2419-fix
Closed

KAFKA-2419 - Fix to prevent background thread from getting created when not required#323
auradkar wants to merge 1 commit into
apache:trunkfrom
auradkar:KAFKA-2419-fix

Conversation

@auradkar

Copy link
Copy Markdown
Contributor

See here for more discussion: https://issues.apache.org/jira/browse/KAFKA-2419
Basically, the fix involves adding a param to Metrics to indicate if it is capable of metric cleanup or not.

…hread from getting created if the Metrics instance does not support expiration

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@auradkar Just a tip (no need to change, up to you): you can use Collections.singletonList() instead of Arrays.asList when dealing with only a single element collection. ;-)

@junrao

junrao commented Oct 16, 2015

Copy link
Copy Markdown
Contributor

Thanks for the patch. LGTM

@asfgit asfgit closed this in aa66b42 Oct 16, 2015
efeg added a commit to efeg/kafka that referenced this pull request Jan 29, 2020
abbccdda pushed a commit to abbccdda/kafka that referenced this pull request May 12, 2020
Observers were not being created in the simulation test due to an invalid range check. This patch fixes the range check.
abbccdda pushed a commit to abbccdda/kafka that referenced this pull request May 31, 2020
Observers were not being created in the simulation test due to an invalid range check. This patch fixes the range check.
hachikuji pushed a commit to hachikuji/kafka that referenced this pull request Aug 5, 2020
Observers were not being created in the simulation test due to an invalid range check. This patch fixes the range check.
hachikuji pushed a commit to hachikuji/kafka that referenced this pull request Aug 13, 2020
Observers were not being created in the simulation test due to an invalid range check. This patch fixes the range check.
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