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

SEVERE: *~*~*~ Channel ManagedChannelImpl{logId=1713, target=xxxxx:20162} was not shutdown properly!!! ~*~*~* Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true. #668

Open
tank-plus opened this issue Nov 16, 2022 · 0 comments
Labels
type/bug Something isn't working

Comments

@tank-plus
Copy link

tank-plus commented Nov 16, 2022

Bug Report

1. Describe the bug

Multi thread use tikv client

2. Minimal reproduce step (Required)

Nov 04, 2022 5:13:59 PM org.tikv.shade.io.grpc.internal.ManagedChannelOrphanWrapper$ManagedChannelReference cleanQueue
SEVERE: ~* Channel ManagedChannelImpl{logId=1713, target=192.168.31.88:20162} was not shutdown properly!!! *~
Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true.
java.lang.RuntimeException: ManagedChannel allocation site
at org.tikv.shade.io.grpc.internal.ManagedChannelOrphanWrapper$ManagedChannelReference.(ManagedChannelOrphanWrapper.java:93)
at org.tikv.shade.io.grpc.internal.ManagedChannelOrphanWrapper.(ManagedChannelOrphanWrapper.java:53)
at org.tikv.shade.io.grpc.internal.ManagedChannelOrphanWrapper.(ManagedChannelOrphanWrapper.java:44)
at org.tikv.shade.io.grpc.internal.ManagedChannelImplBuilder.build(ManagedChannelImplBuilder.java:615)
at org.tikv.shade.io.grpc.internal.AbstractManagedChannelImplBuilder.build(AbstractManagedChannelImplBuilder.java:261)
at org.tikv.common.util.ChannelFactory.lambda$getChannel$0(ChannelFactory.java:157)
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
at org.tikv.common.util.ChannelFactory.getChannel(ChannelFactory.java:130)
at org.tikv.common.region.StoreHealthyChecker.checkStoreHealth(StoreHealthyChecker.java:79)
at org.tikv.common.region.StoreHealthyChecker.run(StoreHealthyChecker.java:119)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)

3. What did you see instead (Required)

Throw an exception log

4. What did you expect to see? (Required)

Do not throw this exception.

5. What are your Java Client and TiKV versions? (Required)

3.3.0

  • Client Java:
  • TiKV:
@tank-plus tank-plus added the type/bug Something isn't working label Nov 16, 2022
@tank-plus tank-plus changed the title SEVERE: *~*~*~ Channel ManagedChannelImpl{logId=1713, target=192.168.31.88:20162} was not shutdown properly!!! ~*~*~* Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true. SEVERE: *~*~*~ Channel ManagedChannelImpl{logId=1713, target=xxxxx:20162} was not shutdown properly!!! ~*~*~* Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true. Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant