Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-22079

master leaks ZK on shutdown and gets stuck because of netty threads if netty socket is used

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      "master/...:17000:becomeActiveMaster-SendThread(...1)" #311 daemon prio=5 os_prio=0 tid=0x0000000058c61800 nid=0x2dd0 waiting on condition [0x0000000c477fe000]
         java.lang.Thread.State: TIMED_WAITING (parking)
      	at sun.misc.Unsafe.park(Native Method)
      	- parking to wait for  <0x00000000c4a5b3c0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
      	at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
      	at java.util.concurrent.LinkedBlockingDeque.pollFirst(LinkedBlockingDeque.java:522)
      	at java.util.concurrent.LinkedBlockingDeque.poll(LinkedBlockingDeque.java:684)
      	at org.apache.zookeeper.ClientCnxnSocketNetty.doTransport(ClientCnxnSocketNetty.java:232)
      	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1146)
      

      This causes a bunch of netty threads to also leak it looks like, and these are not daemon (by design, apparently)

        Attachments

        1. HBASE-22079.patch
          7 kB
          Sergey Shelukhin
        2. HBASE-22079.01.patch
          10 kB
          Sergey Shelukhin

          Issue Links

            Activity

              People

              • Assignee:
                sershe Sergey Shelukhin
                Reporter:
                sershe Sergey Shelukhin
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: