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

Add QuotaV2Handler into produce path #501

Merged
merged 1 commit into from
Apr 9, 2024
Merged

Add QuotaV2Handler into produce path #501

merged 1 commit into from
Apr 9, 2024

Conversation

nickgarvey
Copy link

@nickgarvey nickgarvey commented Jan 4, 2024

Add QuotaV2Handler to the produce path.

TICKET = LIKAFKA-54492
LI_DESCRIPTION =
Only the produce path is modified as quota v2 targets data volume, not request volume.

QuotaV2Handler is an interface with specific implementations set through config values. If no config is set, or the config is valid, then NoOpQuotaV2Handler is used. This approves all requests.

Adds unit tests to verify the NoOp handler is created by default, and the calls in the produce method work as expected.

EXIT_CRITERIA = None, this will carry forward indefinitely.

Committer Checklist (excluded from commit message)

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

@nickgarvey nickgarvey force-pushed the quotav2handler branch 2 times, most recently from 700b20e to 25919ee Compare January 9, 2024 21:40
@nickgarvey nickgarvey marked this pull request as ready for review January 18, 2024 22:37
@nickgarvey nickgarvey changed the title Add QuotaV2Handler into produce path [DRAFT] Add QuotaV2Handler into produce path Jan 18, 2024
Copy link

@CCisGG CCisGG left a comment

Choose a reason for hiding this comment

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

The PR is in a good shape. Thanks Nick! I assume there will be a follow-up PR in kafka-server to implement the handler. Is that correct?

@nickgarvey nickgarvey merged commit ada30cf into 3.0-li Apr 9, 2024
25 checks passed
@nickgarvey nickgarvey deleted the quotav2handler branch April 9, 2024 16:24
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