Repository navigation
Conversation
matipan
force-pushed
the
backport-13542-0.21
branch
from
August 10, 2026 15:14
24be915 to
35afbde
Compare
This was referenced Aug 12, 2026
matipan
marked this pull request as ready for review
August 13, 2026 00:13
Member
Contributor
Author
|
@grouville Closing it given that Erik's #13884 has this change plus some others! |
matipan
force-pushed
the
backport-13542-0.21
branch
from
August 20, 2026 13:13
35afbde to
00c993c
Compare
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.
Summary
Backport #13542 to the v0.21 maintenance line for v0.21.9.
The Cloud keeper polls
engine { clients }as part of its composite heartbeat. On v0.21, that enumeration can block behind one session lifecycle lock held across initialization or teardown. Because the keeper does not publish until the query returns, one slow session can suppress all keeper heartbeats, make a live engine unschedulable, and eventually cause suspension.This backport decouples active-client observers from session lifecycle work while preserving the complete synchronization redesign from the source fix.
Source
cherry-pick -xontoorigin/backport-0.21at9f68624bf69c23c01861e298651656ecac780285cd9c80b9da99c0a90126b4a999400543f110c322v0.21 adaptation
The main-only
wcprofEnabledfield from #13393 does not exist on v0.21 and is not a dependency, so the conflict-only field and assignment were omitted.This is not a reduced
Clientsunlock. It retains the full semantic unit:Clients,activeClientIDs, andclientFromIDsobserversclientMuValidation
Passed:
gofmt -w engine/server/server.go engine/server/session.go engine/server/session_test.gogo test ./engine/server -run "^(TestClientsDoesNotBlockWhileSessionLifecycleLocked|TestActiveClientIDsDoesNotBlockWhileSessionLifecycleLocked|TestGetOrInitClientReturnsFastForRemovedTombstone|TestClientFromIDsStateGating|TestSessionLifecycleObserverConcurrency)$" -count=1go test ./engine/servergo test -race ./engine/servergit diff --check origin/backport-0.21...HEADRelease note
Adds
.changes/unreleased/Fixed-20260810-150651.yamlfor v0.21.9, attributed to source PR #13542.Cloud-side per-operation deadlines remain separate follow-up work and are not changed by this backport.