forked from tarantool/tarantool
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replication: recovery mixed transacrtions
See the docbot request for details. Closes tarantool#7932 @TarantoolBot document Title: correct recovery of mixed transactions In this patch implemented correct recovery of mixed transactions. To do this, set `box.cfg.force_recovery` to `true`. If you need to revert to the old behavior, don't set the `force_recovery` option. What to do when one node feeds the other a xlog with mixed transactions? Let there be two nodes (`node#1` and `node#2`). And let the data be replicated from `node#1` to `node#2`. Suppose that at some point in time, `node#1` is restoring data from an xlog containing mixed transactions. To replicate data from `node#1` to `node#2`, do the following: 1. Stop `node#2` and delete all xlog files from it 2. Restart `node#1` by setting `force_recovery` to `true` 3. Make `node#2` rejoin to `node#1` again.
- Loading branch information
1 parent
ba8eb14
commit 873e431
Showing
6 changed files
with
342 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## feature/replication | ||
|
||
* Implemented correct recovery of mixed transactions. To do this, set | ||
`box.cfg.force_recovery` to `true`. If you need to revert to the old | ||
behavior, don't set the `force_recovery` option (gh-7932). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+597 Bytes
test/replication-luatest/gh_7932_data/bad_xlog/00000000000000000000.xlog
Binary file not shown.
Binary file added
BIN
+646 Bytes
test/replication-luatest/gh_7932_data/good_xlog/00000000000000000000.xlog
Binary file not shown.
Binary file added
BIN
+595 Bytes
test/replication-luatest/gh_7932_data/not_finished_xlog/00000000000000000000.xlog
Binary file not shown.
Oops, something went wrong.