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
AgraVator pushed a commit to AgraVator/grpc-java that referenced this pull request Sep 26, 2025
…in (grpc#12358)

The only caller of `drain()` just reset the interrupt flag. So, we can
avoid the whole exception dance.
AgraVator pushed a commit to AgraVator/grpc-java that referenced this pull request Sep 26, 2025
…in (grpc#12358)

The only caller of `drain()` just reset the interrupt flag. So, we can
avoid the whole exception dance.
@ejona86 ejona86 added the TODO:backport PR needs to be backported. Removed after backport complete label Sep 30, 2025
ejona86 pushed a commit to ejona86/grpc-java that referenced this pull request Sep 30, 2025
…in (grpc#12358)

The only caller of `drain()` just reset the interrupt flag. So, we can
avoid the whole exception dance.
@AgraVator AgraVator removed the TODO:backport PR needs to be backported. Removed after backport complete label Oct 3, 2025
AgraVator pushed a commit to AgraVator/grpc-java that referenced this pull request Oct 6, 2025
…in (grpc#12358)

The only caller of `drain()` just reset the interrupt flag. So, we can
avoid the whole exception dance.
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.

5 participants