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

ZK based Read/Write locks for table operations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.95.0
    • Client, master, Zookeeper
    • None
    • Reviewed
    • Added a read/write lock implementation based on zookeeper recipe, and a table lock per HBase table. Master operations acquire a write lock to the table. Configuration, "hbase.table.lock.enable" can be used to disable the implementation.
    • 0.96notable

    Description

      This has started as forward porting of HBASE-5494 and HBASE-5991 from the 89-fb branch to trunk, but diverged enough to have it's own issue.

      The idea is to implement a zk based read/write lock per table. Master initiated operations should get the write lock, and region operations (region split, moving, balance?, etc) acquire a shared read lock.

      Attachments

        1. 130228-zkrwlocks.pdf
          337 kB
          Jonathan Hsieh
        2. 7305-v11.txt
          172 kB
          Ted Yu
        3. hbase-7305_v0.patch
          108 kB
          Enis Soztutar
        4. hbase-7305_v10.patch
          172 kB
          Enis Soztutar
        5. hbase-7305_v13.patch
          179 kB
          Enis Soztutar
        6. hbase-7305_v14.patch
          176 kB
          Enis Soztutar
        7. hbase-7305_v15.patch
          178 kB
          Enis Soztutar
        8. hbase-7305_v1-based-on-curator.patch
          68 kB
          Enis Soztutar
        9. hbase-7305_v2.patch
          154 kB
          Enis Soztutar
        10. hbase-7305_v4.patch
          156 kB
          Enis Soztutar
        11. hbase-7305_v9.patch
          172 kB
          Enis Soztutar
        12. HBaseTableLocks_v2.pdf
          196 kB
          Enis Soztutar
        13. HBaseTableLocks.pdf
          184 kB
          Enis Soztutar

        Issue Links

          Activity

            People

              enis Enis Soztutar
              enis Enis Soztutar
              Votes:
              0 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: