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

          Hide
          stack added a comment -

          Moving out of 0.92.0. Pull it back in if you think different.

          Show
          stack added a comment - Moving out of 0.92.0. Pull it back in if you think different.
          Hide
          Liang Xie added a comment -

          let me pick it up
          [~Jonathan Gray] Please feel free to reassign to yourself if you are working on it right now

          Show
          Liang Xie added a comment - let me pick it up [~Jonathan Gray] Please feel free to reassign to yourself if you are working on it right now

            People

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

              Dates

              • Created:
                Updated:

                Development