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

tarantool / tarantool / 18975829197
88%
master: 88%

Build:
Build:
LAST BUILD BRANCH: mk-index-mvcc-support
DEFAULT BRANCH: master
Ran 31 Oct 2025 03:04PM UTC
Jobs 1
Files 519
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

31 Oct 2025 02:38PM UTC coverage: 87.569% (+0.005%) from 87.564%
18975829197

push

github

sergepetrenko
bps: prevent missing matras head view changes

We've removed CoW'ing of garbage blocks for creating new inner/leaf
blocks in commit 52b3d4b91 ("salad:
reserve block before bps_tree_insert_first_elem") as the blocks are
not required to be preserved in views and can be used without CoW.

The problem is that in some circumstances this approach can lead to
a tricky problem: if we've created a block, CoW'ed another one and
then update values of the created one, the new block could've been
CoW'ed by the previous `matras_touch` (as the blocks are located in
extents of greater size than the blocks themselves). So following
updates in the created block gone into the view while the current
matras head had the old view's values remained.

The problem is that if we don't touch the garbage on block creation,
we need to make sure there's no any `matras_touch` between the block
creation and the last assignment of its field. We could fix the only
place where the guarantee is not preserved: the leaf insert routine,
but let's keep the tree similar to the BPS vector and simply revert
the change and touch popped garbage blocks too.

Since now the garbage pop invokes CoW, we might need to reserve more
memory for touches, as some new garbage blocks can be allocated on the
`bps_vec_reserve_blocks`, but other ones can be existing in the vector
previously, and, for these ones, we must reserve touches. Also, one
more touch might be required if a new block allocated on reserve.

Removed the target leaf touch from the `bps_tree_process_insert_leaf`
by the way as it's not required cause the leaf is touched on lookup.

Follows-up #11857
Closes #11979

NO_DOC=bugfix
NO_CHANGELOG=was not released

(cherry picked from commit 24cdd89db)

68774 of 116315 branches covered (59.13%)

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

53 existing lines in 13 files now uncovered.

103484 of 118174 relevant lines covered (87.57%)

1606668.75 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
91.17
0.03% src/box/box.cc
1
84.27
0.02% src/box/xlog.c
1
96.3
-3.7% src/cpu_feature.c
1
93.14
-0.08% src/lib/core/fiber.c
1
97.26
0.1% src/lib/msgpuck/msgpuck.h
1
91.68
-0.11% src/lib/swim/swim.c
2
98.29
0.0% src/box/txn.h
2
85.81
-0.32% src/lib/core/say.c
2
96.1
-0.04% src/lib/salad/bps_tree.h
3
87.16
-0.19% src/box/vy_run.c
4
81.82
-12.12% src/lua/minifio.c
5
93.31
-1.59% src/lib/swim/swim_io.c
29
97.98
-0.01% src/box/memtx_tx.c
Jobs
ID Job ID Ran Files Coverage
1 18975829197.1 31 Oct 2025 03:04PM UTC 519
87.57
GitHub Action Run
Source Files on build 18975829197
  • Tree
  • List 519
  • Changed 28
  • Source Changed 0
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • e69f7d06 on github
  • Prev Build on release/3.3 (#18905189408)
  • Next Build on release/3.3 (#18975868276)
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