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

tarantool / tarantool / 18973005052
88%

Build:
DEFAULT BRANCH: master
Ran 31 Oct 2025 01:01PM 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

31 Oct 2025 12:48PM UTC coverage: 87.643% (-0.02%) from 87.666%
18973005052

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

69985 of 117831 branches covered (59.39%)

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

70 existing lines in 23 files now uncovered.

105050 of 119861 relevant lines covered (87.64%)

1361034.59 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.83
0.0% src/box/replication.cc
1
88.01
-0.06% src/box/vy_run.c
1
89.52
-0.17% src/box/wal.c
1
80.0
-2.05% src/lib/core/clock.c
1
90.38
-1.92% src/lib/core/trigger.cc
1
91.68
-0.11% src/lib/swim/swim.c
1
22.7
0.04% src/lib/uri/uri_parser.c
2
95.84
-0.11% src/box/iproto.cc
2
95.93
-0.37% src/box/relay.cc
2
87.93
-3.3% src/box/xlog.h
2
85.61
-0.72% src/lib/core/coio.c
2
96.16
-0.04% src/lib/salad/bps_tree.h
3
90.79
-0.24% src/box/memtx_engine.cc
3
97.43
-0.2% src/box/memtx_tx.c
3
92.55
0.0% src/box/vinyl.c
3
94.68
-1.6% src/box/vy_range.c
3
90.9
-0.31% src/box/vy_scheduler.c
3
85.97
-0.09% src/box/xlog.c
4
97.26
-0.41% src/lib/msgpuck/msgpuck.h
4
93.31
-1.27% src/lib/swim/swim_io.c
5
90.22
-0.31% src/box/vy_log.c
6
97.28
-0.4% src/box/lua/net_box.c
16
91.0
-0.36% src/box/box.cc
Jobs
ID Job ID Ran Files Coverage
1 18973005052.1 31 Oct 2025 01:01PM UTC 514
87.64
GitHub Action Run
Source Files on build 18973005052
  • Tree
  • List 514
  • Changed 36
  • Source Changed 0
  • Coverage Changed 36
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 24cdd89d on github
  • Prev Build on master (#18904928965)
  • Next Build on master (#18986527336)
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