txn: fail ro stmt if transaction is aborted
We fail write statements if the current transaction was aborted by yield or timeout. We should fail read-only statements in this case, as well. Note, we already fail read-only statements if the current transaction was aborted by conflict. Closes #8123 NO_DOC=bug fix (cherry picked from commit 5f1500f4)
Showing
- changelogs/unreleased/gh-8123-txn-fail-ro-stmt-if-aborted.md 5 additions, 0 deletionschangelogs/unreleased/gh-8123-txn-fail-ro-stmt-if-aborted.md
- src/box/txn.c 0 additions, 25 deletionssrc/box/txn.c
- src/box/txn.h 33 additions, 4 deletionssrc/box/txn.h
- test/box-luatest/gh_8123_txn_fail_ro_stmt_if_aborted_test.lua 107 additions, 0 deletions.../box-luatest/gh_8123_txn_fail_ro_stmt_if_aborted_test.lua
- test/box/net.box_iproto_transactions_over_streams.result 8 additions, 15 deletionstest/box/net.box_iproto_transactions_over_streams.result
- test/box/net.box_iproto_transactions_over_streams.test.lua 3 additions, 7 deletionstest/box/net.box_iproto_transactions_over_streams.test.lua
- test/box/net.box_tx_timeout.result 8 additions, 8 deletionstest/box/net.box_tx_timeout.result
- test/box/net.box_tx_timeout.test.lua 4 additions, 4 deletionstest/box/net.box_tx_timeout.test.lua
- test/box/transaction.result 8 additions, 3 deletionstest/box/transaction.result
- test/box/transaction.test.lua 3 additions, 3 deletionstest/box/transaction.test.lua
- test/box/tx_timeout.result 8 additions, 8 deletionstest/box/tx_timeout.result
- test/box/tx_timeout.test.lua 4 additions, 4 deletionstest/box/tx_timeout.test.lua
- test/sql/triggers.result 3 additions, 3 deletionstest/sql/triggers.result
- test/sql/triggers.test.lua 3 additions, 3 deletionstest/sql/triggers.test.lua
Loading
Please register or sign in to comment