HBase
  1. HBase
  2. HBASE-7305

ZK based Read/Write locks for table operations

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.95.0
    • Component/s: Client, master, Zookeeper
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      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.
    • Tags:
      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.

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Enis Soztutar
              Reporter:
              Enis Soztutar
            • Votes:
              0 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development