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

tarantool / tarantool / 14084552938
88%

Build:
DEFAULT BRANCH: master
Ran 26 Mar 2025 01:43PM 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

26 Mar 2025 01:30PM UTC coverage: 87.484% (+0.03%) from 87.455%
14084552938

push

github

locker
vinyl: do not reset cache link LSN on partial key lookup

Since commit e8109b2fe0b3 ("vinyl: ignore cache chains with invisible
DELETEs") each cache node stores the LSNs of the left and right links.
They are used to ignore links that are invisible from the current read
view (created after the read view was opened). We update the LSN not
only when we link two nodes together but also when we update the node's
boundary level. This is incorrect if the node is linked.

For example, suppose we have an index over two fields that contains
tuples {0,2} and {2,0} and there's a transaction that was sent to
a read view. Now another transaction inserts {0,1} and deletes {0,2},
then selects all tuples. This results in creation of two interlinked
cache nodes: {0,1} and {2,0}. The link is invisible from the read view:
since we skipped DELETE{0,2}, its LSN equals the LSN of the DELETE
statement, which is greater than the read view LSN. However, if we now
select GT{1}, we will update the boundary level of the node storing
{2,0} from 2 to 1 and reset its LSN to 0 because we didn't skip any
DELETE statements. As a result, if the transaction operating in the read
view tries to select GT{0,1}, it will find {2,0}, see that it's
left-linked and the link LSN is 0, and return it right away, skipping
{0,2}, which is visible from the read view.

To fix this issue, let's skip the boundary level update if the node
is linked. It doesn't make sense anyway because the boundary level is
used only for unlinked nodes, see vy_cache_iterator_is_stop().

Follow-up #11079
Closes #11294

NO_DOC=bug fix

70102 of 123641 branches covered (56.7%)

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

33 existing lines in 14 files now uncovered.

103200 of 117965 relevant lines covered (87.48%)

2881289.37 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
87.5
-1.59% src/box/xlog.h
1
80.0
-2.05% src/lib/core/clock.c
1
85.15
-0.99% src/lib/small/small/slab_arena.c
1
91.68
-0.11% src/lib/swim/swim.c
1
22.64
-0.02% src/lib/uri/uri_parser.c
2
91.24
0.44% src/box/box.cc
2
92.53
0.04% src/box/vinyl.c
2
87.71
0.27% src/box/vy_run.c
2
94.23
-0.02% src/box/xrow_update_field.c
2
92.94
0.02% src/lib/core/fiber.c
2
95.4
-2.3% src/lib/core/histogram.c
3
94.68
0.53% src/box/vy_range.c
4
97.26
-0.2% src/lib/msgpuck/msgpuck.h
9
88.14
-7.63% src/box/vy_regulator.c
Jobs
ID Job ID Ran Files Coverage
1 14084552938.1 26 Mar 2025 01:43PM UTC 518
87.48
GitHub Action Run
Source Files on build 14084552938
  • Tree
  • List 518
  • Changed 27
  • Source Changed 0
  • Coverage Changed 27
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • ae519ede on github
  • Prev Build on master (#14068276858)
  • Next Build on master (#14101190699)
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