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.6.patch
        60 kB
        Phabricator
      2. ASF.LICENSE.NOT.GRANTED--D2997.5.patch
        60 kB
        Phabricator
      3. ASF.LICENSE.NOT.GRANTED--D2997.4.patch
        56 kB
        Phabricator
      4. ASF.LICENSE.NOT.GRANTED--D2997.3.patch
        55 kB
        Phabricator

        Issue Links

          Activity

          stack created issue -
          Ted Yu made changes -
          Field Original Value New Value
          Link This issue blocks HBASE-5487 [ HBASE-5487 ]
          Mubarak Seyed made changes -
          Link This issue blocks HBASE-5504 [ HBASE-5504 ]
          Phabricator made changes -
          Attachment D2997.3.patch [ 12525488 ]
          Phabricator made changes -
          Attachment D2997.4.patch [ 12525546 ]
          Phabricator made changes -
          Attachment D2997.5.patch [ 12525577 ]
          Phabricator made changes -
          Attachment D2997.6.patch [ 12525662 ]
          stack made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Assignee Alex Feinberg [ avf ]
          Fix Version/s 0.89-fb [ 12320178 ]
          Resolution Fixed [ 1 ]
          Enis Soztutar made changes -
          Link This issue is related to HBASE-7305 [ HBASE-7305 ]
          Gavin made changes -
          Link This issue blocks HBASE-5487 [ HBASE-5487 ]
          Gavin made changes -
          Link This issue is depended upon by HBASE-5487 [ HBASE-5487 ]
          Gavin made changes -
          Link This issue blocks HBASE-5504 [ HBASE-5504 ]
          Gavin made changes -
          Link This issue is depended upon by HBASE-5504 [ HBASE-5504 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development