Skip to content

Stops exception allocation on channel shutdown#11955

Merged
AgraVator merged 7 commits intomasterfrom
prevents-exception-allocation-on-channel-shutdown
Mar 19, 2025
Merged

Stops exception allocation on channel shutdown#11955
AgraVator merged 7 commits intomasterfrom
prevents-exception-allocation-on-channel-shutdown

Conversation

@AgraVator
Copy link
Copy Markdown
Contributor

Fixes: #10524

@AgraVator AgraVator requested a review from ejona86 March 11, 2025 11:20
Comment thread netty/src/main/java/io/grpc/netty/NettyClientHandler.java Outdated
Comment thread core/src/test/java/io/grpc/internal/KeepAliveManagerTest.java Outdated
Comment thread netty/src/main/java/io/grpc/netty/NettyClientHandler.java Outdated
Comment thread netty/src/main/java/io/grpc/netty/NettyClientHandler.java Outdated
Comment thread examples/grpc-java Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Revert this

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This still hasn't been reverted.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This submodule shouldn't exist. It will be deleted when properly reverted.

Comment thread netty/src/main/java/io/grpc/netty/NettyClientHandler.java Outdated
Comment thread netty/src/main/java/io/grpc/netty/NettyClientHandler.java
2. deletes finalPing.failed(status); was called twice
@shivaspeaks shivaspeaks requested a review from ejona86 March 18, 2025 04:20
@ejona86
Copy link
Copy Markdown
Member

ejona86 commented Mar 18, 2025

For the record, I had looked at this after you pushed your most recent commits, but I was still waiting for you to address all my comments.

Copy link
Copy Markdown
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.

Just examples/grpc-java remains to be fixed

@AgraVator AgraVator force-pushed the prevents-exception-allocation-on-channel-shutdown branch from 57c4ce8 to 5ce6267 Compare March 18, 2025 15:09
@AgraVator AgraVator merged commit a57c14a into master Mar 19, 2025
17 of 18 checks passed
@AgraVator AgraVator deleted the prevents-exception-allocation-on-channel-shutdown branch March 19, 2025 03:57
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 18, 2025
AgraVator added a commit to AgraVator/grpc-java that referenced this pull request Dec 24, 2025
This fixes grpc#11955.

Stops exception allocation and its propagation on channel shutdown.
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.

Stop allocating an Exception on Channel shutdown

2 participants