|
Ran
|
Jobs
1
|
Files
514
|
Run time
2min
|
Badge
README BADGES
|
push
github
box: set TXN_WAIT_SYNC with xrow rather than limbo state during recovery During recovery we set the `TXN_WAIT_SYNC` flag based on the limbo's state rather than respecting the xrow's flags. This does not play well with fully local transactions that were committed using the `TXN_FORCE_ASYNC` flag: during runtime they bypass the limbo as expected, but during recovery we do not set this flag, and they are appended to the limbo, if it is not empty, even though they are not supposed to be, since their xrows does not have the `wait_sync` flag. To fix this, during recovery let's set all the required flags related to synchronous replication while processing the xrow, and ignore the limbo emptiness, if we are in recovery and processing local transactions (i.e., not applying remote transactions). Closes #11053 NO_CHANGELOG=<this version is not affect by backported bugfix> NO_DOC=<this version is not affect by backported bugfix> NO_TEST=<this version is not affect by backported bugfix> (cherry picked from commit 4ba187909)
68936 of 122197 branches covered (56.41%)
4 of 4 new or added lines in 1 file covered. (100.0%)
67 existing lines in 20 files now uncovered.101624 of 116249 relevant lines covered (87.42%)
1969475.85 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
90.51 |
-0.63% | src/box/engine.c |
| 1 |
94.74 |
-1.75% | src/box/engine.h |
| 1 |
95.28 |
0.0% | src/box/replication.cc |
| 1 |
93.72 |
-0.16% | src/box/txn_limbo.c |
| 1 |
90.14 |
-0.08% | src/box/vy_log.c |
| 1 |
88.05 |
-0.16% | src/box/vy_lsm.c |
| 1 |
87.5 |
-1.79% | src/box/xlog.h |
| 1 |
97.05 |
-0.1% | src/lib/msgpuck/msgpuck.h |
| 1 |
97.41 |
0.0% | src/lib/vclock/vclock.c |
| 2 |
98.26 |
0.0% | src/box/txn.h |
| 2 |
87.43 |
-0.13% | src/box/vy_run.c |
| 2 |
86.27 |
-0.42% | src/box/vy_stmt.c |
| 2 |
84.32 |
-0.11% | src/box/xlog.c |
| 2 |
95.45 |
-4.55% | src/lib/json/json.h |
| 4 |
93.87 |
-0.77% | src/box/xrow_update_field.c |
| 4 |
93.31 |
-1.27% | src/lib/swim/swim_io.c |
| 6 |
92.11 |
-0.28% | src/box/vinyl.c |
| 8 |
60.42 |
-3.55% | src/lib/core/fio.c |
| 12 |
93.5 |
0.04% | src/box/txn.c |
| 14 |
93.96 |
2.1% | src/box/memtx_space.c |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 14487687066.1 | 514 |
87.42 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|