Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: seredis/StackExchange.Redis
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.4.31
Choose a base ref
...
head repository: seredis/StackExchange.Redis
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.4.35
Choose a head ref
  • 4 commits
  • 49 files changed
  • 2 contributors

Commits on Nov 9, 2026

  1. CLUSTER SLOT-STATS (8.2): per-slot usage statistics on IServer, exper…

    …imental SER012 (#3341)
    
    * CLUSTER SLOT-STATS (8.2): per-slot usage statistics on IServer, experimental SER012
    
    IServer.ClusterSlotStatsBySlotRange(Async) and ClusterSlotStatsOrderBy(Async), modelled
    on the CLUSTER SLOTS file layout and the HOTKEYS field handling: node-local read, lenient
    nominal parsing, config-gated metrics as nullable properties (absent != zero), unknown
    metrics preserved as Metadata, cpu-usec surfaced as TimeSpan. RedisFeatures.ClusterSlotStats
    gates on 8.2 RC1. Promotes the CommandCoverage 'deferred' row.
    
    * The storage-kind tripwire acknowledges SLOT-STATS and SLOTSRANGE: two new >8-byte literals, 28 -> 30
    mgravell authored Nov 9, 2026
    Configuration menu
    Copy the full SHA
    ebe6037 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    079742b View commit details
    Browse the repository at this point in the history
  3. In-repo links follow the org move to seredis (#3326): github.com/Stac…

    …kExchange/StackExchange.Redis -> github.com/seredis/StackExchange.Redis everywhere, including the nupkg RepositoryUrl/PackageReleaseNotes metadata (#3344)
    mgravell authored Nov 9, 2026
    Configuration menu
    Copy the full SHA
    0664f2b View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2026

  1. MOVING handoff: hold new work in the backlog while the in-flight comm…

    …ands drain, so the recycle happens within a round trip instead of at the window end (#3347)
    
    * MOVING handoff: hold new work in the backlog while the in-flight commands drain, so the recycle happens within a round trip instead of at the window end
    
    The drain waited for "no caller work", which under steady traffic never comes: there is always a command in flight, so the recycle waited out the whole announced window and failed whatever was in flight at that instant. Measured live (endpoint rebind, single proxy, ~900 ops/s): recycle at +20.0s against a MOVING at +6.0s, 16 failed commands, missed-deadline warning.
    
    While a handoff drains, the bridge holds a caller's work in the backlog instead of writing it to the connection about to be replaced; the backlog processor does not flush while the hold stands; the drain waits only for what is already written, capped at half the relaxed timeout (bounded by half the remaining window, floor one second); the connection is then recycled as before, the hold cleared, and the held work flushed to the replacement by the ordinary reconnect path. Timeouts are relaxed for the hold and the reconnect. A FailFast policy does not abandon held work for the handoff's own disconnect. Same scenario on this branch: recycle at +6.2s against a MOVING at +5.9s, 0 failed of 97k.
    
    Deliberately a flag and nothing more: no per-message timeout cover (with relaxation off and a timeout shorter than the hold, held commands can time out in the backlog, as on any reconnect), and no retire under the write lock (a writer that reaches the lock after the recycle gets a write fault, as before). Also: the drain budget is recomputed after the DNS poll, a second MOVING during a handoff updates the successor pin rather than being dropped, and the pin lasts the window so the second bridge dials the same successor.
    
    Tests: steady load (with and without relaxation), slow command inside the cap, blocking command past the cap; plus a fault-injector tier measurement that records the live timeline.
    
    * OneLogicalEventFromEveryNodeRaisesOneEvent: wait for the one event rather than counting at the instant the second node relaxed; the callback is dispatched after the relaxation, so the count could be read as zero (flaked on main at ~1 in 6)
    mgravell authored Nov 12, 2026
    Configuration menu
    Copy the full SHA
    510f791 View commit details
    Browse the repository at this point in the history
Loading