Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s2a,netty: S2AHandshakerServiceChannel doesn't use custom event loop. #11539

Merged
merged 7 commits into from
Sep 20, 2024

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
} 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
15 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.
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