Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
2.7
-
None
-
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(); }