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

tarantool / tarantool / 13409701112
87%
master: 88%

Build:
Build:
LAST BUILD BRANCH: mk-index-mvcc-support
DEFAULT BRANCH: master
Ran 19 Feb 2025 10:01AM UTC
Jobs 1
Files 514
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

19 Feb 2025 09:48AM UTC coverage: 87.352% (-0.007%) from 87.359%
13409701112

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

(cherry picked from commit 7c73e24de)

68819 of 122079 branches covered (56.37%)

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

40 existing lines in 9 files now uncovered.

101511 of 116209 relevant lines covered (87.35%)

1958204.45 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.15
-0.13% src/box/replication.cc
1
95.74
1.06% src/box/vy_range.c
1
87.5
-1.59% src/box/xlog.h
1
97.15
-0.1% src/lib/msgpuck/msgpuck.h
2
84.34
-0.08% src/box/xlog.c
4
90.94
-0.41% src/box/vy_scheduler.c
6
94.61
-1.24% src/box/vy_read_iterator.c
8
60.42
-3.55% src/lib/core/fio.c
16
90.69
-0.52% src/box/box.cc
Jobs
ID Job ID Ran Files Coverage
1 13409701112.1 19 Feb 2025 10:01AM UTC 514
87.35
GitHub Action Run
Source Files on build 13409701112
  • Tree
  • List 514
  • Changed 424
  • Source Changed 0
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • c47dbff9 on github
  • Prev Build on release/3.2 (#13402410764)
  • Next Build on release/3.2 (#13416856312)
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