Ran
|
Jobs
1
|
Files
479
|
Run time
1min
|
Badge
Embed ▾
README BADGES
|
push
github
vinyl: fix crash when empty PK DDL races with DML Vinyl doesn't support altering the primary index of a non-empty space, but the check forbidding this isn't entirely reliable - the DDL function may yield to wait for pending WAL writes to finish after ensuring that the space doesn't contain any tuples. If a new tuples is inserted into the space in the meantime, the DDL operation will proceed rebuilding the primary index and trigger a crash because the code is written on the assumption that it's rebuilding a secondary index: ``` ./src/box/vinyl.c:1572: vy_check_is_unique_secondary_one: Assertion `lsm->index_id > 0' failed. ``` Let's fix this by moving the check after syncing on WAL. Closes #10603 NO_DOC=bug fix (cherry picked from commit 955537b57)
63052 of 114351 branches covered (55.14%)
3 of 3 new or added lines in 1 file covered. (100.0%)
16 existing lines in 8 files now uncovered.93919 of 109317 relevant lines covered (85.91%)
3304184.31 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
1 |
91.98 |
-0.17% | src/box/txn_limbo.c |
1 |
95.24 |
-1.59% | src/lib/small/include/small/quota.h |
1 |
95.85 |
-0.52% | src/box/lua/init.c |
1 |
96.0 |
-4.0% | src/lib/core/trigger.h |
1 |
95.74 |
1.06% | src/box/vy_range.c |
2 |
94.81 |
-0.55% | src/box/tuple.c |
4 |
89.84 |
-0.23% | src/box/applier.cc |
5 |
93.44 |
-0.82% | src/box/replication.cc |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 11029368633.1 | 479 |
85.91 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|