[ 
https://issues.apache.org/jira/browse/HBASE-14241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Yu updated HBASE-14241:
---------------------------
    Attachment: 14241-v1.txt

First attempt at resolving deadlock.

Remove synchronized keyword from markClosed() method - shouldCloseConnection is 
AtomicBoolean

The return value from markClosed() determines whether caller of markClosed() 
should close the connection.

> Deadlock during HBaseTestingUtility#shutdownMiniHBaseCluster
> ------------------------------------------------------------
>
>                 Key: HBASE-14241
>                 URL: https://issues.apache.org/jira/browse/HBASE-14241
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 1.0.2
>            Reporter: Andrew Purtell
>         Attachments: 14241-v1.txt, deadlock.txt.gz
>
>
> Caught while testing branch-1.0, shutting down TestMasterMetricsWrapper.
> Found one Java-level deadlock:
> =============================
> "MASTER_META_SERVER_OPERATIONS-ip-10-32-130-237:55342-0":
>   waiting to lock monitor 0x00007f2a040051c8 (object 0x00000007e36108a8, a 
> org.apache.hadoop.hbase.util.PoolMap),
>   which is held by "M:0;ip-10-32-130-237:55342"
> "M:0;ip-10-32-130-237:55342":
>   waiting to lock monitor 0x00007f2a04005118 (object 0x00000007e3610b00, a 
> org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection),
>   which is held by "MASTER_META_SERVER_OPERATIONS-ip-10-32-130-237:55342-0"
> Full stack dump and deadlock debug output attached.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to