Skip to content

Conversation

@rmehta19
Copy link
Contributor

@rmehta19 rmehta19 commented Sep 19, 2024

@rmehta19 rmehta19 force-pushed the s2a-handshaker-default-event-loop branch from 03ced73 to a8120bb Compare September 19, 2024 16:15
@rmehta19 rmehta19 changed the title S2AHandshakerServiceChannel doesn't use custom event loop. s2a,netty: S2AHandshakerServiceChannel doesn't use custom event loop. Sep 19, 2024
delegate.awaitTermination(CHANNEL_SHUTDOWN_TIMEOUT.getSeconds(), SECONDS);
} catch (InterruptedException e) {
isDelegateTerminated = false;
Thread.currentThread().interrupt();
Copy link
Contributor

Choose a reason for hiding this comment

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

if shutdownNow didn't complete, you'll probably want to know about it for debugging, so I'd suggest logging a warning here.

Copy link
Contributor Author

@rmehta19 rmehta19 Sep 20, 2024

Choose a reason for hiding this comment

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

Done in 653ac1e

@rmehta19 rmehta19 force-pushed the s2a-handshaker-default-event-loop branch from ba02591 to 653ac1e Compare September 20, 2024 01:19
@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 20, 2024
@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 20, 2024
*/
@VisibleForTesting
static class EventLoopHoldingChannel extends Channel {
static class HandshakerServiceChannel extends Channel {
Copy link
Member

Choose a reason for hiding this comment

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

ChannelResource doesn't need this class any longer. Delete it. (If you want to do it in a follow-up, that's fine.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in a15421b

@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 20, 2024
@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 20, 2024
@rmehta19 rmehta19 mentioned this pull request Sep 20, 2024
@larry-safran larry-safran merged commit e75a044 into grpc:master Sep 20, 2024
7 checks passed
kannanjgithub pushed a commit to kannanjgithub/grpc-java that referenced this pull request Oct 23, 2024
…grpc#11539)

* S2AHandshakerServiceChannel doesn't use custom event loop.

* use executorPool.

* log when channel not shutdown.

* use a cached threadpool.

* update non-executor version.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants