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

MVCC: SQL tx operations and DDL inside tx block

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.7
    • None
    • mvcc
    • None
    • Docs Required

    Description

      DDL and special tx (BEGIN, COMMIT) operations does not behave well inside explicit tx started using Java API. We should define how such operations behave inside tx or forbid them inside tx. See test SqlTransactionsCommandsWithMvccEnabledSelfTest#testSqlOperationsWithinNonSqlTransaction.
      Here is an example of problematic construction:

      try (Transaction tx = node.transactions().txStart(PESSIMISTIC, SERIALIZABLE)) {
          cache.put(1, 1);
          cache.query(new SqlFieldsQuery("commit"));
          cache.put(2, 2);
      
          tx.commit();
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            Pavlukhin Ivan Pavlukhin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: