gh-827: crash on rollback if out of memory
Reorder initialization of yield/rollback triggers. Add implicit rollback on error in interactive mode, to match call/eval on a remote host. Add error injection to tuple allocation code, to be able to test the case when there is no memory for a new tuple. Add tests.
Showing
- src/box/memtx_engine.cc 28 additions, 17 deletionssrc/box/memtx_engine.cc
- src/box/memtx_engine.h 1 addition, 0 deletionssrc/box/memtx_engine.h
- src/box/tuple.cc 4 additions, 1 deletionsrc/box/tuple.cc
- src/errinj.h 2 additions, 1 deletionsrc/errinj.h
- src/lua/console.lua 8 additions, 1 deletionsrc/lua/console.lua
- test/box/errinj.result 113 additions, 4 deletionstest/box/errinj.result
- test/box/errinj.test.lua 47 additions, 0 deletionstest/box/errinj.test.lua
Loading
Please register or sign in to comment