[jira] [Commented] (HBASE-27335) HBase shell hang fora minute when quiting

2022-08-26 Thread Duo Zhang (Jira)


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

Duo Zhang commented on HBASE-27335:
---

[~ndimiduk] FYI.

> 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)


[jira] [Commented] (HBASE-27335) HBase shell hang fora minute when quiting

2022-08-26 Thread Duo Zhang (Jira)


[ 
https://issues.apache.org/jira/browse/HBASE-27335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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=0x7fbe2a4a1800 nid=0x1b3b waiting on condition  
[0x7fbdf1dfe000]
   java.lang.Thread.State: TIMED_WAITING (parking)
at jdk.internal.misc.Unsafe.park(java.base@11.0.15/Native Method)
- parking to wait for  <0x0006a2a50e08> (a 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at 
java.util.concurrent.locks.LockSupport.parkNanos(java.base@11.0.15/LockSupport.java:234)
at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(java.base@11.0.15/AbstractQueuedSynchronizer.java:2123)
at 
java.util.concurrent.LinkedBlockingQueue.poll(java.base@11.0.15/LinkedBlockingQueue.java:458)
at 
java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.15/ThreadPoolExecutor.java:1053)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.15/ThreadPoolExecutor.java:1114)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.15/ThreadPoolExecutor.java:628)
at java.lang.Thread.run(java.base@11.0.15/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)