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

Use separate thread for calling ZKPermissionWatcher#refreshNodes()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.98.0
    • 1.3.0, 0.98.15, 2.0.0
    • None
    • None
    • Reviewed

    Description

      I came off a support case (0.98.0) where main zk thread was seen doing the following:

        at org.apache.hadoop.hbase.security.access.ZKPermissionWatcher.refreshAuthManager(ZKPermissionWatcher.java:152)
        at org.apache.hadoop.hbase.security.access.ZKPermissionWatcher.refreshNodes(ZKPermissionWatcher.java:135)
        at org.apache.hadoop.hbase.security.access.ZKPermissionWatcher.nodeChildrenChanged(ZKPermissionWatcher.java:121)
        at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.process(ZooKeeperWatcher.java:348)
        at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:519)
        at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:495)
      

      There were 62000 nodes under /acl due to lack of fix from HBASE-12635, leading to slowness in table creation because zk notification for region offline was blocked by the above.

      The attached patch separates refreshNodes() call into its own thread.

      Thanks to Enis and Devaraj for offline discussion.

      Attachments

        1. 14370-v1.txt
          5 kB
          Ted Yu
        2. 14370-v3.txt
          7 kB
          Ted Yu
        3. 14370-wait-nofity.txt
          5 kB
          Ted Yu
        4. 14370-wait-nofity-v2.txt
          6 kB
          Ted Yu
        5. hbase-14370_v4.patch
          16 kB
          Enis Soztutar
        6. 14370-v5.txt
          16 kB
          Ted Yu
        7. 14370-v7.txt
          18 kB
          Ted Yu
        8. 14370-v8.txt
          17 kB
          Ted Yu
        9. 14370-v10.txt
          31 kB
          Ted Yu
        10. 14370-branch-1-v10.txt
          31 kB
          Ted Yu
        11. test-acl3-branch-1.stack
          161 kB
          Ted Yu
        12. 14370-branch-1-v10.txt
          31 kB
          Ted Yu
        13. 14370-0.98-v10.txt
          31 kB
          Ted Yu
        14. 14370-branch-1-v10.txt
          31 kB
          Ted Yu

        Issue Links

          Activity

            People

              yuzhihong@gmail.com Ted Yu
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: