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

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

    Details

    • Type: Improvement
    • Status: Open
    • Priority: 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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: