|
Ran
|
Jobs
1
|
Files
479
|
Run time
33min
|
Badge
README BADGES
|
push
github
memtx: fix a crash caused by mhash misusage in MVCC We use mhash in memtx MVCC to store trackers of reads that have read nothing, we call them point holes. When handling a write to such hole, the tracker should be deleted because we can use the new tuple to store reads instead. Deletion flow in mhash is: we find bucket of the element with `find`, then we free the bucket with `del`. It can seem that the element is not needed on `del` because bucket id is used. However, it can be used on incremental resize of mhash. And, since we delete the point holes before releasing the bucket in mhash, in the rare case of incremental resize Tarantool will be aborted by mhash consistency check. The commit fixes the problem - simply release the bucket before deleting the object. Along the way, the commit fixes another misusage that doesn't actually break something. Method `put_slot` is internal so shouldn't be used manually - let's use more convenient `get` instead. Closes #11022 NO_DOC=bugfix (cherry picked from commit 7c73e24de)
63458 of 114790 branches covered (55.28%)
4 of 4 new or added lines in 1 file covered. (100.0%)
18 existing lines in 8 files now uncovered.94415 of 109719 relevant lines covered (86.05%)
1892614.98 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
92.1 |
-0.05% | src/box/vinyl.c |
| 1 |
96.0 |
-4.0% | src/lib/core/trigger.h |
| 1 |
98.23 |
-0.06% | src/lib/salad/bps_tree.h |
| 1 |
91.45 |
-0.11% | src/lib/swim/swim.c |
| 3 |
90.01 |
-0.23% | src/box/applier.cc |
| 3 |
93.09 |
-1.6% | src/box/vy_range.c |
| 3 |
89.4 |
-0.31% | src/box/vy_scheduler.c |
| 5 |
93.71 |
-0.83% | src/box/replication.cc |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 13397747737.1 | 479 |
86.05 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|