Skip to content

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

Description

@tank-plus

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:

Activity

  1. 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.[/+] on Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions