Skip to content

[BP-2.2][FLINK-40326][core] Do not over-grant capacity in GatedRateLimiter - #28940

Open
Savonitar wants to merge 1 commit into
apache:release-2.2from
Savonitar:bp-2.2-FLINK-40326
Open

[BP-2.2][FLINK-40326][core] Do not over-grant capacity in GatedRateLimiter#28940
Savonitar wants to merge 1 commit into
apache:release-2.2from
Savonitar:bp-2.2-FLINK-40326

Conversation

@Savonitar

Copy link
Copy Markdown
Contributor

Backport of #28920

The decrement in acquire() was generalized from a constant 1 to
numberOfEvents as part of FLIP-535, but the gate was left closing only at
capacityLeft <= 0, so a cycle can admit more events than capacityPerCycle.
The gate is now closed unless the capacity left covers the whole request.
@flinkbot

flinkbot commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants