-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
Description
Please answer these questions before submitting your issue.
What version of gRPC are you using?
grpc-core 1.13.1
What did you expect to see?
I saw lot ====> of .g.i.ManagedChannelOrphanWrapper : ~* Channel ManagedChannelImpl{logId=5, target=172.30.84.17:6565} was not shutdown properly!!! *~
Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true.
java.lang.RuntimeException: ManagedChannel allocation site
at io.grpc.internal.ManagedChannelOrphanWrapper$ManagedChannelReference.(ManagedChannelOrphanWrapper.java:103)
at io.grpc.internal.ManagedChannelOrphanWrapper.(ManagedChannelOrphanWrapper.java:53)
following each errors (StatusRuntimeException)
Client code :
ManagedChannel channel = ManagedChannelBuilder.forAddress(this.host, this.port).usePlaintext().intercept(interceptors).build();
T t = runner.apply(stubSupplier.apply(channel).withDeadlineAfter(timeout, TimeUnit.MILLISECONDS));
try {
channel.shutdown().awaitTermination(5, TimeUnit.SECONDS);
return t;
} catch (InterruptedException e) {
throw new IllegalStateException("Error happened during shutdown of validator gRPC channel", e);
}
I start a new channel by request. Is-it correct ?
shutdown not done efficiently ?
