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

MINOR; Move quota integration tests to using the new quota API. #8954

Merged
merged 2 commits into from
Jul 21, 2020

Conversation

dajac
Copy link
Contributor

@dajac dajac commented Jun 30, 2020

This PR refactors the various quota integration tests in the kafka.api package and migrates them to using the new quota API instead of writing the quota to ZK directly.

Committer Checklist (excluded from commit message)

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

@dajac
Copy link
Contributor Author

dajac commented Jun 30, 2020

@ijuma @rajinisivaram Could you review this one when you have time?

Copy link
Contributor

@rajinisivaram rajinisivaram left a comment

Choose a reason for hiding this comment

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

@dajac Thanks for the PR. Left one minor comment, apart from that LGTM.

props.put(DynamicConfig.Client.ConsumerByteRateOverrideProp, consumerQuota.toString)
props.put(DynamicConfig.Client.RequestPercentageOverrideProp, requestQuota.toString)
props
// Default is set by using Some(null) for either or both user and clientId
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a constant for the default entity and use Some(DefaultEntity) which would avoid the need for the comment that sounds like we are doing something we shouldn't be.

@dajac
Copy link
Contributor Author

dajac commented Jul 20, 2020

@rajinisivaram Thanks for the review. I just pushed an updated that addressed your comment.

@rajinisivaram
Copy link
Contributor

ok to test

@rajinisivaram
Copy link
Contributor

Connect test failure unrelated, merging to trunk.

@rajinisivaram rajinisivaram merged commit b63fecb into apache:trunk Jul 21, 2020
@dajac dajac deleted the minor-remove-zk-in-quota-test branch July 21, 2020 14:56
gitlw pushed a commit to linkedin/kafka that referenced this pull request Sep 9, 2021
…ng the new quota API. (apache#8954)

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.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