wal: do not promote wal vclock for failed writes
Wal used to promote vclock prior to write the row. This lead to a situation when master's row would be skipped forever in case there is an error trying to write it. However, some errors are transient, and we might be able to successfully apply the same row later. So we do not promote writer vclock in order to be able to restart replication from failing point. Obsoletes xlog/panic_on_lsn_gap.test. Needed for #2283
Showing
- src/box/wal.c 17 additions, 6 deletionssrc/box/wal.c
- test/box/errinj.result 57 additions, 0 deletionstest/box/errinj.result
- test/box/errinj.test.lua 18 additions, 0 deletionstest/box/errinj.test.lua
- test/xlog/errinj.result 0 additions, 1 deletiontest/xlog/errinj.result
- test/xlog/panic_on_lsn_gap.result 0 additions, 377 deletionstest/xlog/panic_on_lsn_gap.result
- test/xlog/panic_on_lsn_gap.test.lua 0 additions, 136 deletionstest/xlog/panic_on_lsn_gap.test.lua
Loading
Please register or sign in to comment