Skip to content

downstairs: new negotiation steps for BeenActive - #2050

Open
leftwo wants to merge 2 commits into
alan/been-active-v14-ds-conn-versionfrom
alan/been-active-v14-ds-you-have-been-active
Open

leftwo wants to merge 2 commits into
alan/been-active-v14-ds-conn-versionfrom
alan/been-active-v14-ds-you-have-been-active

Conversation

@leftwo

@leftwo leftwo commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

On a connection that negotiated V14 or later with a read-write region,
negotiation now includes sending the BeenActivePlease - BeenActive sequence.
V13 and read-only connections still finish straight after RegionInfo.

Also, handle receipt of YouHaveBeenActive on a running connection, and
update the file in the region directory so this state is persisted.
On V13 or a read-only region sending YouHaveBeenActive drops the connection
(as any unexpected message does today).

V14 is not in supported() yet, so no live connection is affected.

More to come in the upstairs where we would send these messages.

@leftwo
leftwo requested a review from jmpesp October 21, 2026 21:12
@leftwo
leftwo added this pull request to stack #2051 October 21, 2026 21:12
@leftwo
leftwo removed this pull request from stack #2051 October 22, 2026 19:02
@leftwo
leftwo added this pull request to stack #2045 October 22, 2026 19:03
@leftwo
leftwo force-pushed the alan/been-active-v14-ds-you-have-been-active branch 2 times, most recently from 1790440 to db579c7 Compare October 30, 2026 20:04
@leftwo
leftwo force-pushed the alan/been-active-v14-ds-you-have-been-active branch from db579c7 to 604ee70 Compare November 2, 2026 17:19
@leftwo
leftwo force-pushed the alan/been-active-v14-ds-you-have-been-active branch 3 times, most recently from 9aafe4f to b505e0e Compare November 3, 2026 01:35
On a connection that negotiated V14 or later with a read-write region,
negotiation now includes BeenActivePlease - BeenActive.
V13 and read-only connections still finish straight after RegionInfo.

Handle YouHaveBeenActive on a running connection.  The upstairs and
session IDs are checked like other messages that carry them.
On V13 or a read-only region sending YouHaveBeenActive drops the
connection (as any unexpected message does today).  When expected
we record been_active in the region.

V14 is not in supported() yet, so no live connection is affected.
Made the comments reflect the decision to abort connections
when we can't write the (now named) private file.
@leftwo
leftwo force-pushed the alan/been-active-v14-ds-you-have-been-active branch from b505e0e to 376ac9b Compare November 3, 2026 02:13
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.

2 participants