Skip to content

MINOR: Move creation of quota callback to ensure single instance#4848

Merged
rajinisivaram merged 1 commit intoapache:trunkfrom
rajinisivaram:MINOR-quota-callback
Apr 10, 2018
Merged

MINOR: Move creation of quota callback to ensure single instance#4848
rajinisivaram merged 1 commit intoapache:trunkfrom
rajinisivaram:MINOR-quota-callback

Conversation

@rajinisivaram
Copy link
Copy Markdown
Contributor

Move creation of quota callback instance out of KafkaConfig constructor to QuotaFactory.instantiate to avoid creating a callback instance for every KafkaConfig since we create temporary KafkaConfigs during dynamic config updates.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@rajinisivaram rajinisivaram requested a review from junrao April 10, 2018 13:51
Copy link
Copy Markdown
Contributor

@junrao junrao left a comment

Choose a reason for hiding this comment

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

@rajinisivaram : Thanks for the patch. LGTM

@rajinisivaram
Copy link
Copy Markdown
Contributor Author

@junrao Thanks for the review, merging to trunk.

@rajinisivaram rajinisivaram merged commit 79c6f7c into apache:trunk Apr 10, 2018
ying-zheng pushed a commit to ying-zheng/kafka that referenced this pull request Jul 6, 2018
…che#4848)

Move creation of quota callback instance out of KafkaConfig constructor to QuotaFactory.instantiate to avoid creating a callback instance for every KafkaConfig since we create temporary KafkaConfigs during dynamic config updates.

Reviewers: Jun Rao <junrao@gmail.com>
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.

2 participants