|
Ran
|
Jobs
1
|
Files
518
|
Run time
3min
|
Badge
README BADGES
|
push
github
box: fix crash while nil-uuid subscribe request Before this patch a master node could crash when it processed an anonymous iproto subscribe request which had a nil instance uuid. The reason of this error is that in `box_connect_replica` we didn't throw an error when non-exist replica tried to connect to node. It led to a situation when the nullified replica object was tried to dereferenced while iproto subscribe request. Now, we raise an ER_NIL_UUID error if we get an iproto request with nil `instance_uuid`. After this change `test_fetch_snapshot_no_uuid` and `test_checkpoint_join` start fail. The reason of these failures is an incorrect err.type and err.msg of iproto response when we try to send an iproto request with nil `instance_uuid`. Now, these tests are fixed by changing an err.type and err.msg to appropriate values. Also we change `gh_10155_make_iproto_resistant_to_misusage` test because `write_fetch_snapshot` wasn't be able to send iproto fetch_snapshot request with uuid. It led to situation when ER_NIL_UUID error was raised during fetch_snapshot and as a result we weren't be able to read snapshot after this. It broke `test_iproto_crash_fetch_snapshot_subscribe` and `test_iproto_crash_fetch_snapshot_subscribe_not_anon`. Closes #11531 NO_DOC=bugfix (cherry picked from commit 0ba7505b9)
70545 of 124273 branches covered (56.77%)
1 of 1 new or added line in 1 file covered. (100.0%)
15 existing lines in 9 files now uncovered.103686 of 118458 relevant lines covered (87.53%)
2614918.97 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
95.74 |
1.06% | src/box/vy_range.c |
| 1 |
87.44 |
-0.06% | src/box/vy_run.c |
| 1 |
94.64 |
0.99% | src/box/xrow_update_field.c |
| 1 |
93.12 |
0.19% | src/lib/core/fiber.c |
| 1 |
96.95 |
-0.1% | src/lib/msgpuck/msgpuck.h |
| 2 |
92.4 |
-0.09% | src/box/vinyl.c |
| 2 |
85.71 |
-9.52% | src/lib/core/tt_sigaction.c |
| 2 |
95.45 |
-4.55% | src/lib/json/json.h |
| 4 |
91.32 |
-0.14% | src/box/box.cc |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 16141312752.1 | 518 |
87.53 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|