Skip to content

Reclaim stale recv entries on timeout in CompleteReadRaw#158

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_935372914
Open

Reclaim stale recv entries on timeout in CompleteReadRaw#158
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_935372914

Conversation

@copybara-service

Copy link
Copy Markdown

Reclaim stale recv entries on timeout in CompleteReadRaw

A RecvEntry stayed in active_recv_entries_ until its transfer completed or
explicitly failed. If the producer died or never finished pushing, the
entry (and the host staging slot it now holds) leaked permanently,
eventually exhausting the staging pool. Give each RecvEntry a deadline and
sweep expired ones in CompleteReadRaw, mirroring the existing send-side
sweep: release the slot and report the request via failed_recving so the
connector can recompute the blocks.

@copybara-service copybara-service Bot force-pushed the test_935372914 branch 2 times, most recently from 47008b6 to 0f6b8e4 Compare June 20, 2026 21:36
A RecvEntry stayed in active_recv_entries_ until its transfer completed or
explicitly failed. If the producer died or never finished pushing, the
entry (and the host staging slot it now holds) leaked permanently,
eventually exhausting the staging pool. Give each RecvEntry a deadline and
sweep expired ones in CompleteReadRaw, mirroring the existing send-side
sweep: release the slot and report the request via failed_recving so the
connector can recompute the blocks.
PiperOrigin-RevId: 935372914
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.

1 participant