Curious exceptions in log

1,166 views
Skip to first unread message

Mark Hoffman

unread,
Oct 8, 2021, 4:58:34 PM10/8/21
to pubsub-discuss
HI,
I've been getting a fair amount of these exceptions with my java application publishing messages:
io.grpc.internal.ManagedChannelOrphanWrapper$ManagedChannelReference.cleanQueue_RuntimeException

when trying to create a new publisher. Curiously they don't seem to always directly relate to a failure publishing a message. It appears that they are being generated in a background thread. In fact, for the vm associated with the stack trace, I recorded no failures publishing messages.



Has anyone seen these before

Here's more of the stack trace

st=java.lang.RuntimeException: ManagedChannel allocation site

        at io.grpc.internal.ManagedChannelOrphanWrapper$ManagedChannelReference.<init>(ManagedChannelOrphanWrapper.java:93)

        at io.grpc.internal.ManagedChannelOrphanWrapper.<init>(ManagedChannelOrphanWrapper.java:53)

        at io.grpc.internal.ManagedChannelOrphanWrapper.<init>(ManagedChannelOrphanWrapper.java:44)

        at io.grpc.internal.ManagedChannelImplBuilder.build(ManagedChannelImplBuilder.java:615)

        at io.grpc.internal.AbstractManagedChannelImplBuilder.build(AbstractManagedChannelImplBuilder.java:261)

        at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createSingleChannel(InstantiatingGrpcChannelProvider.java:327)

        at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.access$1700(InstantiatingGrpcChannelProvider.java:74)

        at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider$1.createSingleChannel(InstantiatingGrpcChannelProvider.java:220)

        at com.google.api.gax.grpc.ChannelPool.create(ChannelPool.java:72)

        at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createChannel(InstantiatingGrpcChannelProvider.java:227)

        at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.getTransportChannel(InstantiatingGrpcChannelProvider.java:210)

        at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:169)

        at com.google.cloud.pubsub.v1.stub.GrpcPublisherStub.create(GrpcPublisherStub.java:195)

        at com.google.cloud.pubsub.v1.Publisher.<init>(Publisher.java:188)

        at com.google.cloud.pubsub.v1.Publisher.<init>(Publisher.java:88)

        at com.google.cloud.pubsub.v1.Publisher$Builder.build(Publisher.java:829)

&msg=*~*~*~ Channel ManagedChannelImpl{logId=22833, target=pubsub.googleapis.com:443} was not shutdown properly!!! ~*~*~*

    Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true

Jun Lu

unread,
Oct 11, 2021, 4:40:29 PM10/11/21
to pubsub-discuss
Hi, 

Is it possible that you're not calling Publisher.shutdown to clean up properly somewhere? It looks from [1] that you shall report the behavior at Github as it seems to be a more appropriate support channel for the behavior you're encountering. 
In the meanwhile, please notice that Google Groups are reserved for general product discussion. 

Reply all
Reply to author
Forward
0 new messages