grpc-data A4: in-stream root re-resolve (ResolveRootsAsync) runs on the condition frame loop — up to 10 s stall #934
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From the A4 review round 1 (NIT).
ProjectedConditionAccess.Runner.csRetryDueAsyncawaitsResolveRootsAsync(metadata, 10 s budget) for due mappings whose root never resolved, inside the stream's frame loop. While the origin's metadata call is slow, frame processing for every mapping on that connection stalls for up to 10 s (frames are not lost; the transport/back-pressure buffers them).Fix sketch: start the metadata request as a task, add it to the loop's wake set (beside the retry timer), and apply its results (RootView/RootSubject or MarkRefused) and send the re-adds on the loop when it completes. Deferred from the A4 review-r1 fix pass because it changes the loop's concurrency shape; recorded in
docs/plans/evidence/grpc-data-ext/A4.md"Review round 1".Fixed on master: the in-stream root re-resolve runs as a background task in the loop's wake set (per-stream cancellation); results and re-adds are applied on the frame loop, keeping runner state single-threaded. A slow metadata answer no longer stalls other mappings' frames.