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

[Branch-2.7] Fix broker dispatch byte rate limiter #11249

Merged

Conversation

gaoran10
Copy link
Contributor

@gaoran10 gaoran10 commented Jul 7, 2021

The PR #11135 couldn't be cherry-picked to branch-2.7, because there are too many conflicts.

Motivation

fix #11044
now dispatcher byte rate limit don't limit every cursor read. When cursor read always use ServiceConfiguration.dispatcherMaxReadSizeBytes to read. It will cause that dispatcher read entries by ServiceConfiguration.dispatcherMaxReadSizeBytes to read every time.

implement

when cursor read entries size need to calculate, the calculate result by dispatcher bytes limiter.

Verifying this change

Add the tests for it

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): (no)
The public API: (no)
The schema: (no)
The default values of configurations: (no)
The wire protocol: (no)
The rest endpoints: (no)
The admin cli options: (no)
Anything that affects deployment: (no)

@gaoran10 gaoran10 force-pushed the fix-dispatcher-byte-limit-2.7 branch from b9a6f74 to eece4a7 Compare July 8, 2021 06:26
@gaoran10 gaoran10 force-pushed the fix-dispatcher-byte-limit-2.7 branch from eece4a7 to 061a917 Compare July 8, 2021 13:44
@congbobo184 congbobo184 merged commit 0c6e809 into apache:branch-2.7 Jul 9, 2021
@gaoran10 gaoran10 deleted the fix-dispatcher-byte-limit-2.7 branch July 9, 2021 02:35
@codelipenghui codelipenghui added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked/branch-2.7 Archived: 2.7 is end of life release/2.7.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants