HBase
  1. HBase
  2. HBASE-5494

Introduce a zk hosted table-wide read/write lock so only one table operation at a time

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.89-fb
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      I saw this facility over in the accumulo code base.

      Currently we just try to sort out the mess when splits come in during an online schema edit; somehow we figure we can figure all possible region transition combinations and make the right call.

      We could try and narrow the number of combinations by taking out a zk table lock when doing table operations.

      For example, on split or merge, we could take a read-only lock meaning the table can't be disabled while these are running.

      We could then take a write only lock if we want to ensure the table doesn't change while disabling or enabling process is happening.

      Shouldn't be too hard to add.

      1. ASF.LICENSE.NOT.GRANTED--D2997.3.patch
        55 kB
        Phabricator
      2. ASF.LICENSE.NOT.GRANTED--D2997.4.patch
        56 kB
        Phabricator
      3. ASF.LICENSE.NOT.GRANTED--D2997.5.patch
        60 kB
        Phabricator
      4. ASF.LICENSE.NOT.GRANTED--D2997.6.patch
        60 kB
        Phabricator

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Alex Feinberg
              Reporter:
              stack
            • Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development