|
Ran
|
Jobs
1
|
Files
518
|
Run time
2min
|
Badge
README BADGES
|
push
github
vinyl: fix gc of incomplete runs left after dropped space A space may be dropped while it's being compacted. The vinyl garbage collector purges all run files left after a dropped space, including `.run.inprogress` and `.index.inprogress` files currently being written by compaction tasks. As a result, when a compaction task is completed, it may fail to rename the new run file with a `ENOENT` error: ``` vinyl.compaction.0/102/task xlog.c:800 !> can't rename ./512/0/00000000000000000006.index.inprogress to ./512/0/00000000000000000006.index: No such file or directory ``` This bug has another effect. If the compaction starts writing the file after the garbage collector purges meta-information about it from vylog, the run file will be successfully written but never committed to vylog. As a result, it will never be deleted. Let's fix this issue by making the garbage collector skip incomplete runs unless explicitly instructed to delete them (`VY_GC_INCOMPLETE`). Compaction tasks now discard run files on completion if the space was dropped while compaction was in progress so that they are removed during the next garbage collection round. Closes #11163 NO_DOC=bug fix (cherry picked from commit 219e27d18)
69842 of 123747 branches covered (56.44%)
7 of 7 new or added lines in 2 files covered. (100.0%)
46 existing lines in 13 files now uncovered.102884 of 117692 relevant lines covered (87.42%)
2239213.98 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
92.51 |
0.09% | src/box/vinyl.c |
| 1 |
89.29 |
0.19% | src/box/xlog.h |
| 1 |
96.55 |
-1.15% | src/lib/core/histogram.c |
| 1 |
97.36 |
0.1% | src/lib/msgpuck/msgpuck.h |
| 1 |
91.68 |
-0.11% | src/lib/swim/swim.c |
| 2 |
86.27 |
-0.42% | src/box/vy_stmt.c |
| 3 |
97.95 |
-0.22% | src/box/memtx_tx.c |
| 3 |
95.54 |
-0.36% | src/box/replication.cc |
| 3 |
93.62 |
0.0% | src/box/vy_range.c |
| 3 |
84.35 |
-0.08% | src/box/xlog.c |
| 3 |
22.64 |
-0.06% | src/lib/uri/uri_parser.c |
| 6 |
93.87 |
-1.15% | src/box/xrow_update_field.c |
| 18 |
90.82 |
-0.48% | src/box/box.cc |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 13518552291.1 | 518 |
87.42 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|