• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 13392450183
88%

Build:
DEFAULT BRANCH: master
Ran 18 Feb 2025 02:34PM UTC
Jobs 1
Files 518
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Feb 2025 02:07PM UTC coverage: 87.406% (-0.004%) from 87.41%
13392450183

push

github

sergepetrenko
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

69787 of 123347 branches covered (56.58%)

4 of 4 new or added lines in 1 file covered. (100.0%)

64 existing lines in 15 files now uncovered.

102899 of 117725 relevant lines covered (87.41%)

2472193.45 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.36
-0.31% src/box/raft.c
1
93.53
-0.14% src/box/txn_limbo.c
1
92.25
0.0% src/box/vinyl.c
1
89.09
-1.82% src/box/xlog.h
2
84.32
-0.08% src/box/xlog.c
2
92.93
-0.19% src/lib/core/fiber.c
2
97.15
0.0% src/lib/msgpuck/msgpuck.h
3
90.7
-0.22% src/box/applier.cc
4
93.31
-1.27% src/lib/swim/swim_io.c
5
91.33
0.41% src/box/box.cc
5
22.6
-0.1% src/lib/uri/uri_parser.c
6
93.84
-1.17% src/box/xrow_update_field.c
7
95.19
-1.46% src/box/vy_read_iterator.c
8
60.42
-3.55% src/lib/core/fio.c
16
98.15
0.22% src/box/memtx_tx.c
Jobs
ID Job ID Ran Files Coverage
1 13392450183.1 18 Feb 2025 02:34PM UTC 518
87.41
GitHub Action Run
Source Files on build 13392450183
  • Tree
  • List 518
  • Changed 443
  • Source Changed 0
  • Coverage Changed 35
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 7c73e24d on github
  • Prev Build on master (#13392389283)
  • Next Build on master (#13393422959)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc