HBase
  1. HBase
  2. HBASE-3137

Optimize CAS operations in ZKAssign by being optimistic rather than always doing a sync()

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Zookeeper
    • Labels:
      None

      Description

      HBASE-3136 introduces a fix to the CAS operations in ZKAssign by doing a call to ZK sync() before doing the operation.

      This gives correct behavior but requires doing a sync every time, even if it isn't necessary. Instead, we should be optimistic and only do retries/syncing if necessary.

        Issue Links

          Activity

            People

            • Assignee:
              Liang Xie
              Reporter:
              Jonathan Gray
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development