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

Firestore Java SDK: java.lang.RuntimeException: ManagedChannel allocation site #786

Closed
avertx opened this issue Oct 1, 2021 · 2 comments
Assignees
Labels
api: firestore Issues related to the googleapis/java-firestore API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue.

Comments

@avertx
Copy link

avertx commented Oct 1, 2021

Keep seeing this error randomly, what is the root cause? Filing bug report because this issue appears found/fixed perhaps in another codebase: googleapis/google-cloud-java#3648

2021-10-01 19:11:28.075 ERROR 10 --- [nio-8080-exec-9] i.g.i.ManagedChannelOrphanWrapper        : *~*~*~ Channel ManagedChannelImpl{logId=21, target=firestore.googleapis.com:443} was not shutdown properly!!! ~*~*~*
2021-10-01 19:11:28 default[20211001t103510]      Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true.
2021-10-01 19:11:28 default[20211001t103510]
2021-10-01 19:11:28 default[20211001t103510]  java.lang.RuntimeException: ManagedChannel allocation site  
	at io.grpc.internal.ManagedChannelOrphanWrapper$ManagedChannelReference.<init>(ManagedChannelOrphanWrapper.java:93) ~[grpc-core-1.40.1.jar!/:1.40.1]
  	at io.grpc.internal.ManagedChannelOrphanWrapper.<init>(ManagedChannelOrphanWrapper.java:53) ~[grpc-core-1.40.1.jar!/:1.40.1]
  	at io.grpc.internal.ManagedChannelOrphanWrapper.<init>(ManagedChannelOrphanWrapper.java:44) ~[grpc-core-1.40.1.jar!/:1.40.1]
  	at io.grpc.internal.ManagedChannelImplBuilder.build(ManagedChannelImplBuilder.java:625) ~[grpc-core-1.40.1.jar!/:1.40.1]
  	at io.grpc.internal.AbstractManagedChannelImplBuilder.build(AbstractManagedChannelImplBuilder.java:264) ~[grpc-core-1.40.1.jar!/:1.40.1]
  	at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createSingleChannel(InstantiatingGrpcChannelProvider.java:383) ~[gax-grpc-2.4.0.jar!/:2.4.0]
  	at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.access$1900(InstantiatingGrpcChannelProvider.java:82) ~[gax-grpc-2.4.0.jar!/:2.4.0]
  	at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider$1.createSingleChannel(InstantiatingGrpcChannelProvider.java:239) ~[gax-grpc-2.4.0.jar!/:2.4.0]
  	at com.google.api.gax.grpc.ChannelPool.create(ChannelPool.java:72) ~[gax-grpc-2.4.0.jar!/:2.4.0]
  	at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createChannel(InstantiatingGrpcChannelProvider.java:249) ~[gax-grpc-2.4.0.jar!/:2.4.0]
  	at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.getTransportChannel(InstantiatingGrpcChannelProvider.java:227) ~[gax-grpc-2.4.0.jar!/:2.4.0]
  	at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:205) ~[gax-2.4.0.jar!/:2.4.0]
  	at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:136) ~[gax-2.4.0.jar!/:2.4.0]
  	at com.google.cloud.firestore.spi.v1.GrpcFirestoreRpc.<init>(GrpcFirestoreRpc.java:125) ~[google-cloud-firestore-3.0.3.jar!/:3.0.3]
  	at com.google.cloud.firestore.FirestoreOptions$DefaultFirestoreRpcFactory.create(FirestoreOptions.java:88) ~[google-cloud-firestore-3.0.3.jar!/:3.0.3]
  	at com.google.cloud.firestore.FirestoreOptions$DefaultFirestoreRpcFactory.create(FirestoreOptions.java:80) ~[google-cloud-firestore-3.0.3.jar!/:3.0.3]
  	at com.google.cloud.ServiceOptions.getRpc(ServiceOptions.java:560) ~[google-cloud-core-2.1.2.jar!/:2.1.2]
  	at com.google.cloud.firestore.FirestoreOptions.getFirestoreRpc(FirestoreOptions.java:358) ~[google-cloud-firestore-3.0.3.jar!/:3.0.3]
  	at com.google.cloud.firestore.FirestoreImpl.<init>(FirestoreImpl.java:72) ~[google-cloud-firestore-3.0.3.jar!/:3.0.3]
  	at com.google.cloud.firestore.FirestoreOptions$DefaultFirestoreFactory.create(FirestoreOptions.java:71) ~[google-cloud-firestore-3.0.3.jar!/:3.0.3]
  	at com.google.cloud.firestore.FirestoreOptions$DefaultFirestoreFactory.create(FirestoreOptions.java:64) ~[google-cloud-firestore-3.0.3.jar!/:3.0.3]
  	at com.google.cloud.ServiceOptions.getService(ServiceOptions.java:540) ~[google-cloud-core-2.1.2.jar!/:2.1.2]
@suztomo suztomo transferred this issue from googleapis/google-cloud-java Oct 4, 2021
@product-auto-label product-auto-label bot added the api: firestore Issues related to the googleapis/java-firestore API. label Oct 4, 2021
@suztomo
Copy link
Member

suztomo commented Oct 4, 2021

I moved this issue from google-cloud-java to java-firestore.

@suztomo suztomo added the priority: p3 Desirable enhancement or fix. May not be included in next release. label Oct 4, 2021
@chanseokoh
Copy link

@abramcat are you not calling close(), shutdown(), or something like that on some objects? See https://www.learngoogle.com/2019/06/10/firestore-errors/

@Neenu1995 Neenu1995 added the type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. label Oct 5, 2021
@avertx avertx closed this as completed Oct 5, 2021
@chanseokoh chanseokoh added type: question Request for information or clarification. Not an issue. and removed type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/java-firestore API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

5 participants