|
Ran
|
Jobs
1
|
Files
518
|
Run time
1min
|
Badge
README BADGES
|
push
github
gc: use *.snap st_mtime to schedule after restart Introduce the `timestamp` field in `gc_checkpoint` so now `gc.{c,h}` are aware of actual times of checkpoints, which is important since this subsystem is responsible for scheduling. Now, one can track the unix time of a new checkpoint with new `timestamp` argument of `gc_add_checkpoint`. This change allows us to track previous checkpoints made before the server restart and even `checkpoint_interval` value reconfiguring. This approach was chosen instead of just scanning the `snap_dir` in `gc.c` because it was engine-independent. One may also notice that even if the actual time after the last snapshot before the restart is greater than `2 * checkpoint_interval` we won't start checkpointing immediately because that may cause high disk load in case of multiple instances. So in this case we just schedule a checkpoint at a random moment in the first `checkpoint_interval` seconds after the restart. It seems like even with this scheduling strategy a snapshot will be eventually created even during constant restarting. Fixes #9820 NO_DOC=bugfix (cherry picked from commit d590c7252)
69902 of 123773 branches covered (56.48%)
16 of 17 new or added lines in 3 files covered. (94.12%)
16 existing lines in 10 files now uncovered.102926 of 117653 relevant lines covered (87.48%)
2168606.39 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
90.6 |
-0.05% | src/box/memtx_engine.cc |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
96.12 |
0.0% | src/box/relay.cc |
| 1 |
80.74 |
-0.41% | src/box/tuple_bloom.c |
| 1 |
84.42 |
0.08% | src/box/xlog.c |
| 1 |
93.12 |
-0.1% | src/lib/core/fiber.c |
| 1 |
96.15 |
-0.05% | src/lib/salad/bps_tree.h |
| 1 |
91.68 |
-0.11% | src/lib/swim/swim.c |
| 2 |
93.87 |
-0.31% | src/box/memtx_space.c |
| 2 |
92.37 |
-0.09% | src/box/vinyl.c |
| 3 |
91.23 |
-0.1% | src/box/box.cc |
| 3 |
90.9 |
-0.31% | src/box/vy_scheduler.c |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 14101953967.1 | 518 |
87.48 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|