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

Document MVCC write conflict exceptions

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7
    • Component/s: documentation
    • Labels:
      None
    • Ignite Flags:
      Docs Required

      Description

      When an entry is read (1) inside a transaction and then updated (2), there is a chance that concurrent transaction will modify that entry in between (1) and (2). In this case an error is thrown from the first transaction when action (2) is performed and transaction is marked as "rollback only". User need to re-try the whole transaction in this case.

      When native APi is used, then CacheException is thrown with special message Cannot serialize transaction due to write conflict (transaction is marked for rollback). This will be changed in future (AI 2.8|) - special exception type will be thrown.

      When JDBC or ODBC are used, then special SQLSTATE code 40001 (aka "Serialization failure") is propagated to user.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dmagda Denis A. Magda
                Reporter:
                vozerov Vladimir Ozerov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: