Repository navigation
Conversation
Contributor
|
Thank you for your contribution! Before we can merge this PR, we need you to sign our Contributor License Agreement (CLA). To sign, please reply with the following comment:
You only need to sign once — it will be valid for all your future contributions to this project. I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Starting a replica currently removes other processes' account/user concurrency slots and shared wait counters. Their requests keep running without being counted, so a restart or scale-out can exceed configured limits.
This change reuses Redis-time lease expiry for startup cleanup, preserves unexpired peer leases and waiter TTLs, and atomically bounds nonexpiring legacy counters. Valid index candidates are left for the existing background reconciler so startup cannot erase a concurrent peer registration.
This is a smaller, lease-based alternative to #7804, with no process heartbeat or hostname assumptions. It preserves heartbeat-less peers when the new binary starts; an old binary's destructive startup behavior still requires upgrading that binary. Crashed slots remain until their normal lease expiry, and ownerless shared counters retain their existing TTL/residue limitations.
Validation:
No new dependencies or schema changes. A multi-node Redis Cluster and older Redis versions were not separately exercised; the added Lua scripts each touch only one key.