Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-19888

Java client: Track observable timestamp

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-beta1
    • 3.0
    • platforms, thin client

    Description

      Motivation
      The read timestamp for a RO transaction is supposed to be determined by a client timestamp to linearize transactions.

      Implementation notes

      • The request which starts RO transaction (IGNITE-19887) has to provide a timestamp.
      • Requests which start SQL, also provide a specific timestamp (if they start RO internally) (IGNITE-19898 here the concrete method to retrieve timestamp will be implemented).
      • The current server timestamp (clock.now()) should be added to (except in the cases above) the transaction response.
      • If a server response does not have the timestamp or timestamp is less than the client already has, do nothing.
      • If the time is grater than the client has, the client timestamp should be updated.
      • The timestamp is used to start RO transaction (IGNITE-19887)

      Definition of done
      The timestamp is passed from the server-side to a client. The client just save the timestamp and send it in each request to server-side.
      All client-side created RO transactions should execute in past with timestamp has been determining by client timestamp.

      Attachments

        Issue Links

          Activity

            People

              ptupitsyn Pavel Tupitsyn
              v.pyatkov Vladislav Pyatkov
              Vladislav Pyatkov Vladislav Pyatkov
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 1h
                  1h