Skip to content

fix(pd): preserve request lifecycle across disconnects and aborts - #1599

Open
WANDY666 wants to merge 1 commit into
mainfrom
fix/pd-request-lifecycle
Open

WANDY666 wants to merge 1 commit into
mainfrom
fix/pd-request-lifecycle

Conversation

@WANDY666

Copy link
Copy Markdown
Contributor

Make PD request registration, abort delivery, and connection cleanup follow explicit request and connection ownership. Stale disconnects no longer remove a replacement node, control frames survive caller cancellation, and KV task groups are registered before their following aborts.

These races can leave requests running after cancellation or waiting on disconnected nodes. The master now owns stage timeouts, terminal errors are preserved, and missing P/D nodes return HTTP 503.

Tests: lifecycle, reconnect identity, cancellation, terminal-error and existing PD regressions (65 passed).

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