Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3472

Treat check request as a write request which needs to wait for the check txn commit from leader

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.6.0, 3.5.5
    • 3.6.0
    • server

    Description

      Check op is usually used as a sub op in multi, but from the ZooKeeper server implementation it can also called separately, the learner will forward this request to leader, and the leader will check the version with the given version in the request, and generate a txn (error) in the quorum.
       
      This is kind of a heavier sync to make sure when the client check on a learner, it is syncing up to date with leader when the check request is being processed. The learner need to wait for this remote commit before reply to client in FinalRequestProcessor.
       
      There is no explicit API exposed for check, so it seems not a problem, but it could leave an issue there if the check API is exposed in the future.

      Attachments

        Issue Links

          Activity

            People

              lvfangmin Fangmin Lv
              lvfangmin Fangmin Lv
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m