|
Ran
|
Jobs
1
|
Files
521
|
Run time
1min
|
Badge
README BADGES
|
push
github
limbo: introduce explicit state The txn_limbo::state now is one member which clearly reflects the state of the limbo: inactive, leader, or replica. Previously these states also existed but had to be deducted from other properties. With the new approach it became possible to remove some of the other state-flags, simplify others, and simplify the limbo's API in general. For example, there is no more such states as "fenced" or "frozen". Because these were very high-level descriptions of events like when a leader steps down due to quorum loss or a new term appearing or when the instance was just restarted. These were events, not states. The state in these cases is the limbo becoming a "replica" instead of "leader". With such approach the concept of "unfencing" also disappears. Because a replica can't just become a leader even if the quorum is restored. It anyway needs to be elected again. The most important parts of this commit are the state itself and the new flag is_transition_in_progress. The new flag previously didn't exist explicitly. These new things will be needed in scope of #8095, where ownership transition will actually be in progress for quite a while, not only during PROMOTE journal write. Part of #8095 NO_DOC=refactoring NO_CHANGELOG=refactoring NO_TEST=tested (cherry picked from commit a755e0ed3)
68798 of 116441 branches covered (59.08%)
72 of 72 new or added lines in 5 files covered. (100.0%)
210 existing lines in 17 files now uncovered.103585 of 118277 relevant lines covered (87.58%)
1631705.49 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
87.84 |
-1.35% | src/box/lua/ctl.c |
| 1 |
96.3 |
0.0% | src/box/relay.cc |
| 1 |
84.26 |
0.02% | src/box/xlog.c |
| 1 |
80.0 |
-2.5% | src/lib/core/clock.c |
| 1 |
96.55 |
-1.15% | src/lib/core/histogram.c |
| 1 |
97.26 |
-0.1% | src/lib/msgpuck/msgpuck.h |
| 2 |
98.07 |
0.0% | src/box/lua/info.c |
| 2 |
92.52 |
0.0% | src/box/vinyl.c |
| 2 |
85.61 |
-0.72% | src/lib/core/coio.c |
| 2 |
85.81 |
-0.32% | src/lib/core/say.c |
| 3 |
87.1 |
-0.2% | src/box/vy_run.c |
| 4 |
93.84 |
-0.8% | src/box/xrow_update_field.c |
| 4 |
81.82 |
-12.12% | src/lua/minifio.c |
| 6 |
93.09 |
-3.19% | src/box/vy_range.c |
| 12 |
93.59 |
0.01% | src/box/txn.c |
| 21 |
94.51 |
0.1% | src/box/txn_limbo.c |
| 146 |
90.82 |
-0.37% | src/box/box.cc |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 21650485918.1 | 521 |
87.58 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|