Skip to content

Resend held retries when a slot map refresh retires a connection - #575

Merged
fcostaoliveira merged 2 commits into
masterfrom
fix/retired-connection-retry-queues
Oct 13, 2026
Merged

fcostaoliveira merged 2 commits into
masterfrom
fix/retired-connection-retry-queues

Conversation

@fcostaoliveira

@fcostaoliveira fcostaoliveira commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

In cluster mode with --retry-on-error (and --reconnect-on-error), a --requests=N run stops short once a CLUSTER SLOTS refresh retires a connection. For example, kill -9 a primary mid-run so that its replica gets promoted. The thread stops at N minus up to --pipeline requests per affected connection, prints "ended before the requested request count was reached", and the run exits 1.

Root cause

When a connection drops, disconnect() moves its in-flight requests, plus anything in its retry queue, into m_replay_queue. They stay counted as generated so they can be resent after a reconnect. After the replica is promoted, the refresh in cluster_client::handle_cluster_slots finds that the old connection owns no slots and retires it. The retirement loop compensates staged monitor commands and key pools, but not these queues. The connection never reconnects, so drain_replay_queue_after_reconnect() (and its dec_reqs_generated, added in #559) never runs. Those requests are never completed and never uncounted, so reqs_generated stays ahead of what can ever be processed.

Fix

When the retirement loop retires a connection, hand_off_replay_requests() moves every request it still holds for resend (replay queue, then retry queue) to the connection that owns the request's slot primary in the new topology. adopt_replay_request() only queues it in that connection's replay queue and calls schedule_fill(). Nothing is written from inside the CLUSTER SLOTS reply handler, which may belong to the adopting connection itself.

  • Once the target is connected and its setup ladder is done, fill_pipeline() resends the request through the existing drain_replay_queue_after_reconnect() path, so --max-retries, the missing-bytes checks and the dec_reqs_generated on drop all still apply.
  • If the target isn't connected yet (for example a connection the refresh just created, or one waiting on a reconnect timer), the request waits in its replay queue and is resent when it connects, as after any reconnect.
  • Some requests are logged to --failed-keys-file as REPLAY and uncounted with dec_reqs_generated, the same as a drop in drain_replay_queue_after_reconnect():
    • no-slot-owner-for-replay: the request has no key or its slot has no owner.
    • slot-owner-down-for-replay: the slot owner is disconnected with no reconnect pending, so attempt_reconnect() gave up on it (no --reconnect-on-error, or --max-reconnect-attempts reached). The refresh dials every primary without a pending timer, and since Retry cluster shard connections that fail to dial synchronously #574 a failed dial schedules one, so this is the only way a just-committed primary ends up there.
    • transaction-not-replayed: any request held under --transaction. This matches MOVED/ASK under --transaction. Resending it on another connection would split its MULTI/EXEC block, or land it inside a MULTI that the target has open (Never send CLUSTER SLOTS inside an open --transaction MULTI (#569) #576).

Accounting stays consistent with #557/#559/#560:

  • A handed-off request is still counted as generated once.
  • It's counted as processed once, when its final attempt completes on the new connection.
  • It adds to that connection's pending count only when it's actually resent.
  • The retired connection's reconnect and max-reconnect-attempts handling are unchanged.

Tests

New RLTest test tests/test_cluster_failover_retry.py, with a new CI cell "OSS-CLUSTER + replicas: primary failover with retries". It needs replicas that take part in failover, so it skips in the other cells. The test:

  1. Lowers cluster-node-timeout to 2 s at runtime.
  2. Starts memtier with -t1 -c2 -n 500000 --pipeline 16 --retry-on-error --reconnect-on-error.
  3. SIGKILLs a non-seed primary once it is serving traffic.
  4. Checks that the replica was promoted, that memtier exits 0 without the "ended before" error, and that the JSON Totals count is at least threads × clients × requests.

RLTest prints a "process is not alive" warning at teardown for the killed primary. That warning is expected and doesn't fail the test.

The test checks >= rather than == because requests retried after MOVED/ASK are counted twice in ops (#579).

Before/after on a local cluster (Redis 8.6.0, 3 primaries + 1 replica of the killed primary, --cluster-node-timeout 2000). The first two rows are from the first revision, against 667f187. The rest are from the head of this branch, rebased on 4146bb8:

Scenario master this PR
Manual repro: -t1 -c2 -n 2000000 --pipeline=16 --retry-on-error --reconnect-on-error, kill -9 of a primary after 3 s 667f187: 10/10 failed, exit 1 at 3999968 of 4000000 ops. 4146bb8: 3/3 failed, same count 8/8 passed at head (5 with the seed as a primary, 3 with the seed as the killed primary's replica, so the main connection adopts the requests): exit 0, 4000000 ops
New RLTest test (3 shards + replicas) 667f187: 3/3 failed, exit 1, 999968 of 1000000 ops 3/3 passed at head
Same kill with --transaction --pipeline=1 (--command "SET __key__ __data__" --command "GET __key__", -n 400000) 4146bb8: 3/3 failed, exit 1 at 799998 of 800000 ops 4/4 passed: exit 0, 800000 ops, 2 transaction-not-replayed per run

Regression runs at head:

  • test_retry_on_error.py, test_reconnections.py, test_cluster_failover_retry.py and test_cluster_transaction.py pass on OSS cluster (35/35) and standalone (35/35).
  • test_read_preference_failover.py and test_read_preference_modes.py pass with replicas (8/8).

Not addressed here

Fixes #568

Affected versions: 2.4.0–2.5.2 and master (introduced by 08cfc24 / #381; widened by #559)

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

🤖 Automated first-pass review — a human maintainer's review is still required before merge.

Thanks for this. I went through the hand-off path and the deferred resend in fill_pipeline(). The accounting looks consistent with #559/#560 to me. Handed-off requests go through drain_replay_queue_after_reconnect(), so --max-retries, the missing-bytes drop and dec_reqs_generated all still apply. The new drop reasons also uncount through the same path. The regression test fails on master (3/3) and passes with the fix, which is the bar we want for this kind of bug. A few questions:

  • fill_pipeline() runs once per response. The comment just above the new block records a ~4% regression from an unconditional call there. The new check is only a NULL test plus empty(), so I guess it's fine. I assume you put it in fill_pipeline() rather than in deferred_fill_pipeline_cb so that a target still waiting on its setup commands picks up the requests once setup finishes. Is that right? If so, maybe say so in the comment, so nobody later "optimizes" it into the callback.

  • On the connect path, drain_replay_queue_after_reconnect() runs before fill_pipeline(), so it may resend before setup is done. The new path waits for is_conn_setup_done(). I think the stricter gate is the right one. Just checking that the difference is intended and not something the connect path should match.

  • The test SIGKILLs a primary and leaves cluster-node-timeout / cluster-replica-validity-factor changed on every node. In CI it has its own cell, so that's fine. Does RLTest restart the env before the next module if someone runs the full suite locally with OSS_CLUSTER_REPLICAS=1? If not, later tests would run against a degraded cluster. A short note in the docstring, or restoring the config in a finally, might help.

  • pop_replay_request() also drains m_retry_queue. That queue's drain timer may still be armed on the retired connection. I think handle_retry_drain_event() returns early on an empty queue, so a stale fire does nothing. I may be wrong though, so it may be worth confirming the timer can't touch a deleted connection.

  • Nitpicking: the pop_req(): Assertion 'm_pending_resp >= 0' crash you found during slot migration sounds worth its own issue so it doesn't get lost, if there isn't one already.

The core fix looks solid to me. These are mostly questions, and nothing here should block the merge on its own.

@fcostaoliveira

Copy link
Copy Markdown
Collaborator Author

Two follow-ups found during this work, split out as separate issues and not addressed in this PR:

fcostaoliveira and others added 2 commits October 13, 2026 18:18
With --retry-on-error, a connection that drops keeps its in-flight and
retry-queued requests in its replay queue, still counted as generated,
and resends them once it reconnects. When a CLUSTER SLOTS refresh then
finds that the connection owns no slots (for example after its primary
died and a replica was promoted), handle_cluster_slots retires it and it
never reconnects. Those requests were never completed or uncounted, so a
--requests run ended a few requests short and exited 1.

When retiring a connection, hand each held request to the connection
that now owns its slot's primary. It is resent right away if that
connection is up, or once it connects. A request with no key or no slot
owner is logged to --failed-keys-file and uncounted, as
drain_replay_queue_after_reconnect does for requests it drops.

Add an RLTest regression test that kills a primary mid-run in a cluster
with replicas, and a CI cell that runs it.

Fixes #568

Co-Authored-By: Claude Opus 5.5 <[email protected]>
hand_off_replay_requests() runs inside a CLUSTER SLOTS reply handler,
possibly the one of the connection that now owns the slot. Resending
from there pushed onto that connection's pipeline mid-process_response(),
before its m_cluster_slots was setup_done. adopt_replay_request() now
only queues the request and calls schedule_fill(); fill_pipeline()
resends it once the connection is connected and set up. A connection
that isn't connected yet still resends it when it connects.

Drop and uncount, with a --failed-keys-file line, a request that:
- is held under --transaction, as MOVED/ASK do, since resending it on
  another connection would split its MULTI/EXEC block or land inside
  one that connection has open;
- targets a primary that is disconnected with no reconnect pending.
  The refresh dials every primary without a pending timer, and since
  #574 a failed dial schedules one, so this is a primary that
  attempt_reconnect() gave up on (no --reconnect-on-error, or
  --max-reconnect-attempts reached).

adopt_replay_request() asserts the replay queue exists instead of
silently dropping the request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fcostaoliveira
fcostaoliveira force-pushed the fix/retired-connection-retry-queues branch from 18f8cc8 to b8c16ff Compare October 13, 2026 17:42
@fcostaoliveira

Copy link
Copy Markdown
Collaborator Author

Thanks for the review. I rebased on master (4146bb8, which includes #574 and #576) and added b8c16ff on top of 0a2e014, which is the original commit after the rebase.

1. Re-entrancy. The old code was safe. process_response() calls pop_req() for the CLUSTER SLOTS request before its switch, so handle_cluster_slots() runs with that request already off the pipeline. A push_req() on the same connection appends behind requests that are already on the wire, and responses are still matched in FIFO order. m_cluster_slots == setup_sent only gates fill_pipeline() from creating new requests. It doesn't stop a replay. Still, I took your suggestion. adopt_replay_request() now only pushes onto the replay queue and calls schedule_fill(). fill_pipeline() drains a non-empty replay queue once the connection is conn_connected and is_conn_setup_done(). So nothing is written from inside the reply handler. The connection that sent the refresh resends from the fill_pipeline() at the end of that same process_response(), after m_cluster_slots is setup_done. A connection that isn't connected yet still drains the queue on BEV_EVENT_CONNECTED, as before. The m_pending_resp abort is #578. It comes from the connection that receives the reply retiring itself, and it happens on master as well.

2. Target that never reconnects. The guarantee is weaker than "always connected or connecting", so b8c16ff handles the gap. Every primary in a topology that was just committed is connected, connecting, or waiting on a reconnect timer:

A primary can still end up disconnected with no timer, when attempt_reconnect() gave up on it (no --reconnect-on-error, or --max-reconnect-attempts reached). In that case hand_off_replay_requests() now logs the request as REPLAY ... slot-owner-down-for-replay and uncounts it, like the other drops. The comment at that check states this guarantee. If a target with a pending timer later runs out of attempts, the thread ends with "Maximum reconnection attempts exceeded". That's an explicit failure, not a silent short count.

3. --transaction. You were right that the old code replayed these requests outside the pinned MULTI. Worse, it could land one inside a MULTI the target had open, and #576's m_multi_open doesn't guard against that. b8c16ff no longer hands off any request under --transaction. It logs transaction-not-replayed and uncounts it, the same way MOVED/ASK under --transaction drop the command rather than retry it on another connection. So the hand-off never touches the pin or m_multi_open.

Tested with a kill of a primary during --transaction --pipeline=1 (-t1 -c2 -n 400000):

Build Result
master 3/3 exit 1 at 799998 of 800000 ops
this PR 4/4 exit 0 with 800000 ops, 2 transaction-not-replayed per run

At --pipeline > 1 the worker crashes before the replica is even promoted, on master and here. That's #580.

4. Nit. Done. adopt_replay_request() now does assert(m_replay_queue != NULL).

5. Flake risk. Agreed, I'll watch the new CI cell over the next few runs. The test checks Totals >= requests rather than == because of #579: requests retried after MOVED/ASK are counted twice in ops. Locally, back-to-back RLTest runs sometimes failed to start the cluster with bind: Address already in use on a bus port, from sockets still in TIME_WAIT. That happens in env setup, before memtier runs, and a single CI run per cell shouldn't hit it.

Evidence on b8c16ff (local, Redis 8.6.0):

Check master 4146bb8 this PR
Manual kill -9 repro (-t1 -c2 -n 2000000 --pipeline=16) 3/3 exit 1 at 3999968 of 4000000 ops 8/8 exit 0 with 4000000 ops
test_cluster_failover_retry.py (3 shards + replicas) n/a 3/3 pass
  • The 8 manual runs include 3 with the memtier seed as the killed primary's replica, so the main connection adopts the requests.
  • test_retry_on_error.py, test_reconnections.py, test_cluster_failover_retry.py and test_cluster_transaction.py pass on OSS cluster (35/35) and standalone (35/35).
  • test_read_preference_failover.py and test_read_preference_modes.py pass with replicas (8/8).

I updated the PR description to match.

🤖 Generated with Claude Code

@fcostaoliveira
fcostaoliveira merged commit c9a65a0 into master Oct 13, 2026
127 checks passed
fcostaoliveira added a commit that referenced this pull request Oct 13, 2026
…s it

When every slot moves off a primary mid-run, that primary's connection
answers -MOVED, sends CLUSTER SLOTS itself and, handling the reply in its
own process_response(), handle_cluster_slots() retires it: disconnect()
frees the bufferevent and empties the pipeline. The loop then went on
parsing replies still buffered behind the CLUSTER SLOTS reply and popped
an empty pipeline. With --retry-on-error (whose resends follow the
CLUSTER SLOTS request on that connection) this aborted with
"Assertion m_pending_resp >= 0" in pop_req(); release builds use a
garbage request.

process_response() now notes a per-connection disconnect counter before
parsing and stops once a handler has torn the connection down.
disconnect() has already requeued (--retry-on-error, handed off by #575)
or uncounted every request those replies answered.

Without --retry-on-error the same retirement ended runs with "client(s)
stopped before reaching their stop condition": producers parked by
hold_pipeline() waited on in-flight work of the retired connection, which
disconnect() dropped without waking anyone, so the event loop ran out of
events. handle_cluster_slots() now wakes every live connection whenever
it retires a connection (dropping its staged commands, key pool, pipeline
or unplaceable replays), as it already did for --multi-key-get.

tests/test_cluster_failover_retry.py moves every slot of a primary to
another primary (and back) six times during a --requests run, with and
without --retry-on-error, and checks the exact op count. On master the
first test aborts and the second stops early in every run; both pass with
this change.

Fixes #578

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fcostaoliveira added a commit that referenced this pull request Oct 14, 2026
…s it

When every slot moves off a primary mid-run, that primary's connection
answers -MOVED, sends CLUSTER SLOTS itself and, handling the reply in its
own process_response(), handle_cluster_slots() retires it: disconnect()
frees the bufferevent and empties the pipeline. The loop then went on
parsing replies still buffered behind the CLUSTER SLOTS reply and popped
an empty pipeline. With --retry-on-error (whose resends follow the
CLUSTER SLOTS request on that connection) this aborted with
"Assertion m_pending_resp >= 0" in pop_req(); release builds use a
garbage request.

process_response() now notes a per-connection disconnect counter before
parsing and stops once a handler has torn the connection down.
disconnect() has already requeued (--retry-on-error, handed off by #575)
or uncounted every request those replies answered.

Without --retry-on-error the same retirement ended runs with "client(s)
stopped before reaching their stop condition": producers parked by
hold_pipeline() waited on in-flight work of the retired connection, which
disconnect() dropped without waking anyone, so the event loop ran out of
events. handle_cluster_slots() now wakes every live connection whenever
it retires a connection (dropping its staged commands, key pool, pipeline
or unplaceable replays), as it already did for --multi-key-get.

tests/test_cluster_failover_retry.py moves every slot of a primary to
another primary (and back) six times during a --requests run, with and
without --retry-on-error, and checks the exact op count. On master the
first test aborts and the second stops early in every run; both pass with
this change.

Fixes #578

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fcostaoliveira added a commit that referenced this pull request Oct 14, 2026
With --transaction --retry-on-error --reconnect-on-error, a dropped
connection's in-flight requests were replayed after the reconnect without
their MULTI, which the server dropped with the old socket. The replayed
EXEC failed with "-ERR EXEC without MULTI", and that error was retried:
the same EXEC was resent and failed again, without end under the default
--max-retries=-1. Standalone runs sent thousands of failing EXECs per
second and still exited 0; cluster runs never reached --test-time.

Resending one command of a MULTI block on its own can't work, so under
--transaction:
- enqueue_retry() refuses every request, so error replies are counted
  as errors on every path (client::handle_response, the -READONLY
  reroute) instead of being retried. The replay bytes are no longer
  copied, since nothing resends them.
- disconnect() drops in-flight requests instead of queueing them for
  replay. They are uncounted as without --retry-on-error and logged to
  --failed-keys-file as transaction-not-replayed, as the slot map
  hand-off already does for retired connections (#575).

Retries without --transaction are unchanged.

Fixes #611

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fcostaoliveira added a commit that referenced this pull request Oct 14, 2026
With --transaction --retry-on-error --reconnect-on-error, a dropped
connection's in-flight requests were replayed after the reconnect without
their MULTI, which the server dropped with the old socket. The replayed
EXEC failed with "-ERR EXEC without MULTI", and that error was retried:
the same EXEC was resent and failed again, without end under the default
--max-retries=-1. Standalone runs sent thousands of failing EXECs per
second and still exited 0; cluster runs never reached --test-time.

Resending one command of a MULTI block on its own can't work, so under
--transaction:
- enqueue_retry() refuses every request, so error replies from
  client::handle_response() are counted as errors instead of being
  retried. The replay bytes are no longer copied, since nothing
  resends them.
- disconnect() drops in-flight requests instead of queueing them for
  replay. They are uncounted as without --retry-on-error and logged to
  --failed-keys-file as transaction-not-replayed, as the slot map
  hand-off already does for retired connections (#575). That hand-off
  branch is now only a guard.

Retries without --transaction are unchanged.

Fixes #611

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fcostaoliveira added a commit that referenced this pull request Oct 14, 2026
With --transaction --retry-on-error --reconnect-on-error, a dropped
connection's in-flight requests were replayed after the reconnect without
their MULTI, which the server dropped with the old socket. The replayed
EXEC failed with "-ERR EXEC without MULTI", and that error was retried:
the same EXEC was resent and failed again, without end under the default
--max-retries=-1. Standalone runs sent thousands of failing EXECs per
second and still exited 0; cluster runs never reached --test-time.

Resending one command of a MULTI block on its own can't work, so under
--transaction:
- enqueue_retry() refuses every request, so error replies from
  client::handle_response() are counted as errors instead of being
  retried. The replay bytes are no longer copied, since nothing
  resends them.
- disconnect() drops in-flight requests instead of queueing them for
  replay. They are uncounted as without --retry-on-error and logged to
  --failed-keys-file as transaction-not-replayed, as the slot map
  hand-off already does for retired connections (#575). That hand-off
  branch is now only a guard.

Retries without --transaction are unchanged.

Fixes #611

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fcostaoliveira added a commit that referenced this pull request Oct 14, 2026
With --retry-on-error, a request answered with a retryable error leaves
the pipeline and waits in its connection's retry queue for the backoff.
If the run is past --test-time and that was the last pending reply,
fill_pipeline() finds every connection idle (all_connections_idle()
only checks pending replies) and calls disconnect_all(). disconnect()
moves the retry queue into the replay queue, nothing reconnects, and the
destructor frees the requests: they are never resent, never counted as
errors, never logged to --failed-keys-file, and missing from Count. The
run reports "errors 0" and exits 0. Both standalone (e.g. -BUSY) and
cluster mode (-MOVED) are affected.

Waiting for the retries instead is not bounded: --max-retries defaults
to unlimited, and in cluster mode no CLUSTER SLOTS refresh is sent after
the deadline (#590), so a MOVED retry would loop on the same node. So
account for them the way other drops are since #559/#575: when the run
ends, log every request still held for resend to --failed-keys-file as
REPLAY "run-ended-before-retry", count it as an error like a refused
retry, uncount it with dec_reqs_generated(), and print one warning.
A --requests run is unaffected: a retried request is not processed
until its final attempt, so it never ends with retries queued.

Fixes #619

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fcostaoliveira added a commit that referenced this pull request Oct 14, 2026
With --retry-on-error, a request answered with a retryable error leaves
the pipeline and waits in its connection's retry queue for the backoff.
If the run is past --test-time and that was the last pending reply,
fill_pipeline() finds every connection idle (all_connections_idle()
only checks pending replies) and calls disconnect_all(). disconnect()
moves the retry queue into the replay queue, nothing reconnects, and the
destructor frees the requests: they are never resent, never counted as
errors, never logged to --failed-keys-file, and missing from Count. The
run reports "errors 0" and exits 0. Both standalone (e.g. -BUSY) and
cluster mode (-MOVED) are affected.

Waiting for the retries instead is not bounded: --max-retries defaults
to unlimited, and in cluster mode no CLUSTER SLOTS refresh is sent after
the deadline (#590), so a MOVED retry would loop on the same node. So
account for them the way other drops are since #559/#575: when the run
ends, log every request still held for resend to --failed-keys-file as
REPLAY "run-ended-before-resend", count it as an error like a refused
retry, uncount it with dec_reqs_generated(), and print one warning.
A --requests run is unaffected: a retried request is not processed
until its final attempt, so it never ends with retries queued.

Fixes #619

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fcostaoliveira added a commit that referenced this pull request Oct 14, 2026
With --retry-on-error, a request answered with a retryable error leaves
the pipeline and waits in its connection's retry queue for the backoff.
If the run is past --test-time and that was the last pending reply,
fill_pipeline() finds every connection idle (all_connections_idle()
only checks pending replies) and calls disconnect_all(). disconnect()
moves the retry queue into the replay queue, nothing reconnects, and the
destructor frees the requests: they are never resent, never counted as
errors, never logged to --failed-keys-file, and missing from Count. The
run reports "errors 0" and exits 0. Both standalone (e.g. -BUSY) and
cluster mode (-MOVED) are affected.

Waiting for the retries instead is not bounded: --max-retries defaults
to unlimited, and in cluster mode no CLUSTER SLOTS refresh is sent after
the deadline (#590), so a MOVED retry would loop on the same node. So
account for them the way other drops are since #559/#575: when the run
ends, log every request still held for resend to --failed-keys-file as
REPLAY "run-ended-before-resend", count it as an error (not as an op:
it never got a final reply), uncount it with dec_reqs_generated(), and
print one warning per client.
A --requests run is unaffected: a retried request is not processed
until its final attempt, so it never ends with retries queued.

Fixes #619

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fcostaoliveira added a commit that referenced this pull request Oct 14, 2026
With --retry-on-error, a request answered with a retryable error leaves
the pipeline and waits in its connection's retry queue for the backoff.
If the run is past --test-time and that was the last pending reply,
fill_pipeline() finds every connection idle (all_connections_idle()
only checks pending replies) and calls disconnect_all(). disconnect()
moves the retry queue into the replay queue, nothing reconnects, and the
destructor frees the requests: they are never resent, never counted as
errors, never logged to --failed-keys-file, and missing from Count. The
run reports "errors 0" and exits 0. Both standalone (e.g. -BUSY) and
cluster mode (-MOVED) are affected.

Waiting for the retries instead is not bounded: --max-retries defaults
to unlimited, and in cluster mode no CLUSTER SLOTS refresh is sent after
the deadline (#590), so a MOVED retry would loop on the same node. So
account for them the way other drops are since #559/#575: when the run
ends, log every request still held for resend to --failed-keys-file as
REPLAY "run-ended-before-resend", count it as an error (not as an op:
it never got a final reply), uncount it with dec_reqs_generated(), and
print one warning per client.
A --requests run is unaffected: a retried request is not processed
until its final attempt, so it never ends with retries queued.

Fixes #619

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

Cluster --retry-on-error: --requests run can't finish after a refresh retires a connection

1 participant