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

SQL TX: Locking protocol for simple queries

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Implemented
    • None
    • 2.7
    • cache, mvcc, sql
    • None

    Description

      We need to develop locking protocol for SQL queries. Design considerations:
      1) Use GridNeaLockRequest|Response as a template for new messages
      2) Cover only queries which doesn't require reduce stage (see server-side DML optimization code, e.g. GridH2DmlRequest).
      3) When next entry is found, try locking it. If it is already locked, then register current TX as candidate in MVCC manager and go to the next row. Other TXes will notify use when entries are released. Send a response when all entries are locked.
      4) Read entry version before locking and after. If they doesn't match (i.e. concurrent modification occurred), then throw an exception.

      Attachments

        Issue Links

          Activity

            People

              gvvinblade Igor Seliverstov
              vozerov Vladimir Ozerov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: