Skip to content

rgw: ops large budget caused by rate limiter was enabled and max_ops … - #27

Open
s0nea wants to merge 2 commits into
squid-19.2.6-cobaltcore-storagefrom
backport/602
Open

s0nea wants to merge 2 commits into
squid-19.2.6-cobaltcore-storagefrom
backport/602

Conversation

@s0nea

@s0nea s0nea commented Oct 13, 2026 •

Copy link
Copy Markdown

…set to 0

Signed-off-by: morphes1995 morphes1995@gmail.com
(cherry picked from commit 91e9f00)

Conflicts:

The cherry-pick was done by resolving minor conflicts. The conflicts appear because
ceph@dae572d has not been backported to squid.

src/rgw/rgw_ratelimit.h
  • should_rate_limit_list() and should_rate_limit_delete(): do not apply their guards, because the functions do not exist (added by dae572d).

  • should_rate_limit_read() and should_rate_limit_write(): apply the if (read_ops() > 0) / if (write_ops() > 0) guard, but keep the return 0 of the int64_t instead of return false (3dae903).

    src/test/rgw/test_rgw_ratelimit.cc

  • Do not apply LIST and DELETE tests (added by dae572d).

  • unlimited_access_not_left_large_read_ops_budget and unlimited_access_not_left_large_write_ops_budget: take the tests, but adapt them to this branch:

    • RateLimiter ratelimit: drop the g_ceph_context argument (added by dae572d).
    • should_rate_limit(): drop the trailing "" resource argument (added by dae572d).
    • bool success / EXPECT_EQ(false, success): int64_t delay / EXPECT_EQ(0, delay) (3dae903).

Closes cobaltcore-dev/cloud-storage#602

Backport file

  • release-management/backports/<uuid>.md added (or updated) by this PR
  • id in frontmatter matches the filename stem
  • provenance.upstream_prs set (or provenance.type: other with an other: block)

Stage-B risk (filled per release-management/backports/RISK-RUBRIC.md)

  • blast — cosmetic / availability / data-loss
  • conflict — clean / trivial / substantive
  • coverage — strong / partial / weak
  • Risk-notes paragraph in the prose section (required for high band)

Merge

Land this via just merge-backport PR=<N> — do not click the green merge button.
The just recipe constructs the merge commit's Backport-Id trailer.

morphes1995 and others added 2 commits October 13, 2026 11:06
…set to 0

Signed-off-by: morphes1995 <morphes1995@gmail.com>
(cherry picked from commit 91e9f00)

Conflicts:

The cherry-pick was done by resolving minor conflicts. The conflicts
appear because
ceph@dae572d
has not been backported to `squid`.

	src/rgw/rgw_ratelimit.h
- should_rate_limit_list() and should_rate_limit_delete(): do not
  apply their guards, because the functions do not exist (added by
  dae572d).
- should_rate_limit_read() and should_rate_limit_write(): apply the
  `if (read_ops() > 0)` / `if (write_ops() > 0)` guard, but keep the
  `return 0` of the int64_t instead of `return false` (3dae903).

	src/test/rgw/test_rgw_ratelimit.cc
- Do not apply LIST and DELETE tests (added by dae572d).
- unlimited_access_not_left_large_read_ops_budget and
  unlimited_access_not_left_large_write_ops_budget: take the tests,
  but adapt them to this branch:
  - RateLimiter ratelimit: drop the g_ceph_context argument (added by
    dae572d).
  - should_rate_limit(): drop the trailing "" resource argument (added
    by dae572d).
  - bool success / EXPECT_EQ(false, success): int64_t delay /
    EXPECT_EQ(0, delay) (3dae903).
Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com>

@Doracly Doracly left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM.:)

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.

3 participants