Skip to content

Fix race condition and test flakiness in polling communicator Flush and Reset.#630

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
cl/948936881
Open

Fix race condition and test flakiness in polling communicator Flush and Reset.#630
copybara-service[bot] wants to merge 1 commit into
masterfrom
cl/948936881

Conversation

@copybara-service

Copy link
Copy Markdown

Fix race condition and test flakiness in polling communicator Flush and Reset.

In polling communicator, Reset forcefully canceled the context of active poll HTTP requests. The canceled poll deferred writing errors to pollComplete, which raced with Reset's non-blocking channel drain. Subsequent Flush calls received the canceled poll's error ("unable to contact any server").

Refactored polling communicator to use a clean broadcast channel pattern (pollDone) for Flush unblocking without forcibly canceling in-flight HTTP requests during Reset.

@copybara-service copybara-service Bot added the exported Exported change from internal source label Jul 16, 2026
…nd Reset.

In polling communicator, Reset forcefully canceled the context of active poll HTTP requests. The canceled poll deferred writing errors to pollComplete, which raced with Reset's non-blocking channel drain. Subsequent Flush calls received the canceled poll's error ("unable to contact any server").

Refactored polling communicator to use a clean broadcast channel pattern (pollDone) for Flush unblocking without forcibly canceling in-flight HTTP requests during Reset.

PiperOrigin-RevId: 948936881
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Exported change from internal source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants