|
Ran
|
Jobs
1
|
Files
522
|
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)
70188 of 118145 branches covered (59.41%)
71 of 71 new or added lines in 5 files covered. (100.0%)
173 existing lines in 12 files now uncovered.105512 of 120469 relevant lines covered (87.58%)
1377603.64 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
90.5 |
-0.07% | src/box/applier.cc |
| 1 |
96.3 |
-0.18% | src/box/relay.cc |
| 1 |
95.83 |
-0.12% | src/box/replication.cc |
| 1 |
96.55 |
-1.15% | src/lib/core/histogram.c |
| 1 |
97.46 |
0.3% | src/lib/msgpuck/msgpuck.h |
| 2 |
95.84 |
-0.11% | src/box/iproto.cc |
| 2 |
98.07 |
0.0% | src/box/lua/info.c |
| 3 |
92.43 |
-0.13% | src/box/vinyl.c |
| 4 |
93.31 |
-1.27% | src/lib/swim/swim_io.c |
| 9 |
88.14 |
-7.63% | src/box/vy_regulator.c |
| 22 |
94.28 |
-0.03% | src/box/txn_limbo.c |
| 126 |
90.98 |
0.25% | src/box/box.cc |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 21431603214.1 | 522 |
87.58 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|