[ 
https://issues.apache.org/jira/browse/HBASE-27335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17585426#comment-17585426
 ] 

Duo Zhang commented on HBASE-27335:
-----------------------------------

Attached the jstack when hanging.

Seems the only non daemon thread besides the JVM's is

{noformat}
"hconnection-0x656672fb-shared-pool-0" #27 prio=5 os_prio=0 cpu=179.83ms 
elapsed=29.72s tid=0x00007fbe2a4a1800 nid=0x1b3b waiting on condition  
[0x00007fbdf1dfe000]
   java.lang.Thread.State: TIMED_WAITING (parking)
        at jdk.internal.misc.Unsafe.park([email protected]/Native Method)
        - parking to wait for  <0x00000006a2a50e08> (a 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at 
java.util.concurrent.locks.LockSupport.parkNanos([email protected]/LockSupport.java:234)
        at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos([email protected]/AbstractQueuedSynchronizer.java:2123)
        at 
java.util.concurrent.LinkedBlockingQueue.poll([email protected]/LinkedBlockingQueue.java:458)
        at 
java.util.concurrent.ThreadPoolExecutor.getTask([email protected]/ThreadPoolExecutor.java:1053)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker([email protected]/ThreadPoolExecutor.java:1114)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run([email protected]/ThreadPoolExecutor.java:628)
        at java.lang.Thread.run([email protected]/Thread.java:829)
{noformat}

And another thing is that, if you leave the shell without any action for 1 
minute, then you can quit it immediately.

> HBase shell hang fora minute when quiting
> -----------------------------------------
>
>                 Key: HBASE-27335
>                 URL: https://issues.apache.org/jira/browse/HBASE-27335
>             Project: HBase
>          Issue Type: Bug
>          Components: shell
>            Reporter: Duo Zhang
>            Priority: Major
>         Attachments: jstack.log
>
>
> Found this when trying the 2.5.0 RC. The way to reproduce
> Use './bin/hbase shell' to connect to a cluster, and then run these two 
> commands
> {code}
> count "hbase:meta"
> quit
> {code}
> We will hang about 1 minute before the final exit of the shell process.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to