Repository navigation
[Experimental] Multiple head node support using raft consensus algorithm - #51781
Closed
pavelkushtia wants to merge 0 commit into
Closed
pavelkushtia wants to merge 0 commit into
pavelkushtia wants to merge 0 commit into
Conversation
pavelkushtia
requested review from
a team,
kevin85421 and
pcmoritz
as code owners
March 28, 2025 01:58
pavelkushtia
requested review from
a team,
GeneDer,
akshay-anyscale,
aslonnie,
edoakes,
hongpeng-guo,
justinvyu,
matthewdeng,
raulchen,
richardliaw,
simonsays1980,
sven1977,
woshiyyya and
zcin
as code owners
April 6, 2025 06:37
aslonnie
reviewed
Apr 7, 2025
aslonnie
left a comment
Contributor
There was a problem hiding this comment.
please fix the merge base.
pavelkushtia
marked this pull request as draft
April 7, 2025 22:59
pavelkushtia
force-pushed
the
ssiddique/multi_head_node
branch
from
April 8, 2025 00:43
11f2066 to
1a2edec
Compare
nadongjun
added a commit
to nadongjun/ray
that referenced
this pull request
Aug 10, 2026
…events Round of fixes from the first CI run (microcheck ray-project#51781) and the bot reviews on ray-project#65298. Teardown crash (CI: gcs_client_test SIGSEGV, 2 out of 2). When an io_context is destroyed with redis work still queued, boost::asio destroys the pending handlers without running them. One of those handlers held the last owner of the RedisStoreClient, so its destruction tore down the RedisContext, whose raw hiredis context was still REDIS_CONNECTED because the loop never got to process the drop. redisAsyncFree then flushed the pending command callbacks, and the retry path scheduled a timer on the io_context that was mid- destruction. RedisRequestContext now carries a token that expires with its RedisAsyncContext; a flushed callback that finds it expired drops the request instead of scheduling anything. AUTH verified before a reconnect is declared (Cursor review, and it made a row in the PR's verification table wrong). Startup proves credentials on a synchronous probe before anything async happens; the reconnect path had no probe and sent AUTH fire-and-forget, so a promoted primary that rejects the credentials still logged "Reconnected" and then bled the command budget on -NOAUTH replies. The reconnect's AUTH now carries a reply callback: an error reply tears the fresh connection down (redisAsyncDisconnect, the teardown that is legal from inside a hiredis callback) and the disconnect path retries; only a clean reply completes the episode. The TCP connect callback defers to it through auth_pending_. Retries driven by failure events instead of a poll (Gemini review). The retry timer used to re-arm unconditionally, so while a connect was in flight it woke up, saw the pending flag, and re-armed: a poll. Now a sync connect failure schedules the retry on the spot, an async failure schedules it from the disconnect callback, and a success arms nothing. The epoch guard still kills timers orphaned by an episode that ended in success. Log flood (CI: 26,244 identical ERROR lines in one test). During an outage every in-flight command fails once per backoff step, and with the grace period holding their budgets nothing is even being spent. Refunded failures now log at WARNING, rate-limited to one line per second; failures that do spend budget keep the per-command ERROR. test_redis_failureover asserts that gcs_server exits promptly when the Redis Cluster node it is pointed at goes away, which is exactly the documented-unsupported topology, so the test now pins redis_reconnect_grace_period_ms=0 to keep the old exit semantics it is built around. test_redis_with_sentinel_failureover polls with a 2s interval so the 120s wait does not spawn a driver process per 100ms (Gemini review). The gcs_client_test thread_checker failure in CI attempt 2 reproduces locally only under parallel test load and its stack has no redis frames (TearDown polls the io_context on the main thread and a queued GcsActorManager callback trips its thread checker); it predates this stack. Signed-off-by: Dongjun Na <[email protected]>
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.
Why are these changes needed?
Related issue number
Checks
git commit -s) in this PR.scripts/format.shto lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/under thecorresponding
.rstfile.