Skip to content

Conversation

@anurag4DSB
Copy link
Contributor

  • Add rate limit fields to server access logs (optional fields for monitoring)
  • Fix fail-open behavior at startup: workers now start with full token buffer (50 tokens) instead of 0, preventing request throttling before Redis connection is established

Note: this is default behaviour, which might be modified per strategy used for Redis unavailability which is out of scope of this PR and will be handled in another PR.

@bert-e
Copy link
Contributor

bert-e commented Dec 11, 2025

Hello anurag4dsb,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval
/bypass_build_status Bypass the build and test status
/bypass_commit_size Bypass the check on the size of the changeset TBA
/bypass_incompatible_branch Bypass the check on the source branch prefix
/bypass_jira_check Bypass the Jira issue check
/bypass_peer_approval Bypass the pull request peers' approval
/bypass_leader_approval Bypass the pull request leaders' approval
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request TBA
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

@anurag4DSB anurag4DSB marked this pull request as ready for review December 11, 2025 08:42
@bert-e
Copy link
Contributor

bert-e commented Dec 11, 2025

Incorrect fix version

The Fix Version/s in issue CLDSRV-809 contains:

  • None

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 9.2.9

Please check the Fix Version/s of CLDSRV-809, or the target
branch of this pull request.

@codecov
Copy link

codecov bot commented Dec 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.31%. Comparing base (be287a3) to head (deb467c).
⚠️ Report is 5 commits behind head on development/9.2.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

Files with missing lines Coverage Δ
lib/api/apiUtils/rateLimit/tokenBucket.js 81.17% <100.00%> (-15.30%) ⬇️

... and 5 files with indirect coverage changes

@@                 Coverage Diff                 @@
##           development/9.2    #6025      +/-   ##
===================================================
- Coverage            84.57%   84.31%   -0.26%     
===================================================
  Files                  204      204              
  Lines                12913    12913              
===================================================
- Hits                 10921    10888      -33     
- Misses                1992     2025      +33     
Flag Coverage Δ
ceph-backend-test 66.10% <100.00%> (-0.35%) ⬇️
file-ft-tests 67.49% <100.00%> (-0.33%) ⬇️
kmip-ft-tests 28.19% <0.00%> (+0.03%) ⬆️
mongo-v0-ft-tests 68.74% <100.00%> (-0.31%) ⬇️
mongo-v1-ft-tests 68.73% <100.00%> (-0.33%) ⬇️
multiple-backend 35.34% <0.00%> (ø)
sur-tests 36.46% <0.00%> (ø)
sur-tests-inflights 37.51% <0.00%> (ø)
unit 69.89% <100.00%> (ø)
utapi-v2-tests 34.36% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@anurag4DSB anurag4DSB requested a review from a team December 11, 2025 09:03
Workers now start with bufferSize tokens (default 50) instead of 0,
enabling fail-open behavior at startup when Redis is unavailable.

Previously, new token buckets started empty and required a Redis
refill cycle before allowing any requests. This caused all initial
requests to be throttled until Redis granted tokens.
Workers now start with bufferSize tokens (default 50) instead of 0,
enabling fail-open behavior at startup when Redis is unavailable.

Previously, new token buckets started empty and required a Redis
refill cycle before allowing any requests. This caused all initial
requests to be throttled until Redis granted tokens.
@anurag4DSB anurag4DSB force-pushed the bugfix/CLDSRV-809-allow-tokens-before-redis-interaction branch from 82bb57c to deb467c Compare December 11, 2025 09:06
@anurag4DSB
Copy link
Contributor Author

rebased with latest dev/9.2 and pushed

@bert-e
Copy link
Contributor

bert-e commented Dec 11, 2025

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

@anurag4DSB anurag4DSB requested review from a team and tmacro December 11, 2025 11:42
@anurag4DSB
Copy link
Contributor Author

/approve

@bert-e
Copy link
Contributor

bert-e commented Dec 11, 2025

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

The following options are set: approve

@bert-e
Copy link
Contributor

bert-e commented Dec 11, 2025

I have successfully merged the changeset of this pull request
into targetted development branches:

  • ✔️ development/9.2

The following branches have NOT changed:

  • development/7.10
  • development/7.4
  • development/7.70
  • development/8.8
  • development/9.0
  • development/9.1

Please check the status of the associated issue CLDSRV-809.

Goodbye anurag4dsb.

The following options are set: approve

@bert-e bert-e merged commit deb467c into development/9.2 Dec 11, 2025
30 checks passed
@bert-e bert-e deleted the bugfix/CLDSRV-809-allow-tokens-before-redis-interaction branch December 11, 2025 17:35
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.

5 participants