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

core: make subchannel creation timing restriction stricter #7790

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/src/main/java/io/grpc/internal/ManagedChannelImpl.java
Expand Up @@ -1425,8 +1425,8 @@ public AbstractSubchannel createSubchannel(CreateSubchannelArgs args) {
}

private SubchannelImpl createSubchannelInternal(CreateSubchannelArgs args) {
// TODO(ejona): can we be even stricter? Like loadBalancer == null?
checkState(!terminated, "Channel is terminated");
// No new subchannel should be created after delayedTransport has been shutdown.
voidzcy marked this conversation as resolved.
Show resolved Hide resolved
checkState(!terminating, "Channel is being terminated");
return new SubchannelImpl(args, this);
}

Expand Down