Skip to content

Conversation

benjaminp
Copy link
Contributor

The only caller of drain() just reset the interrupt flag. So, we can avoid the whole exception dance.

The only caller of `drain()` just reset the interrupt flag. So, we can avoid the whole exception dance.
@benjaminp benjaminp force-pushed the drain-InterruptedException branch from 19cf6f5 to dedd8b0 Compare September 15, 2025 05:27
Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, drain doesn't block, so it shouldn't observe interruptions.

@ejona86 ejona86 added the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Sep 18, 2025
@grpc-kokoro grpc-kokoro removed the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Sep 18, 2025
@shivaspeaks shivaspeaks merged commit 9cddcb4 into grpc:master Sep 22, 2025
26 of 29 checks passed
@benjaminp benjaminp deleted the drain-InterruptedException branch September 22, 2025 14:31
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.

4 participants