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

tarantool / tarantool / 17463 / 5
83%
master: 88%

Build:
Build:
LAST BUILD BRANCH: refs/pull/12447/merge
DEFAULT BRANCH: master
Ran 18 Jun 2019 03:48PM UTC
Files 305
Run time 20s
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 Jun 2019 01:42PM UTC coverage: 82.462% (-0.1%) from 82.577%
TARGET=coverage

push

travis-ci

kyukhin
<a href="https://github.com/tarantool/tarantool/commit/<a class=hub.com/tarantool/tarantool/commit/c5232d683f36b387c0be10b7fd64d9d208771bfd">c5232d683<a href="https://github.com/tarantool/tarantool/commit/c5232d683f36b387c0be10b7fd64d9d208771bfd">&quot;&gt;vinyl: fix assertion failure in vy_tx_handle_deferred_delete

vy_tx_handle_deferred_delete() expects (righteously) that in case a
deferred DELETE overwrites a statement in a secondary index write set
and the overwritten statement wasn&amp;#39;t skipped on commit (i.e. doesn&amp;#39;t
have txv-&amp;gt;is_overwritten flag set), both the old and the new statement
must be REPLACEs (see the comment to the corresponding assertions for
more details).

The problem is we don&amp;#39;t set is_overwritten flag in case a statement
doesn&amp;#39;t have any effect (txv-&amp;gt;is_nop is set), even if it was, in fact,
overwritten in the primary index write set (see vy_tx_prepare). As
a result, we get an assertion failure when we delete such statement
in the same transaction, e.g.

  s = box.schema.space.create(&amp;#39;test&amp;#39;, {engine = &amp;#39;vinyl&amp;#39;})
  s:create_index(&amp;#39;pk&amp;#39;, {parts = {1, &amp;#39;unsigned&amp;#39;}})
  s:create_index(&amp;#39;sk&amp;#39;, {parts = {2, &amp;#39;unsigned&amp;#39;}})
  s:replace{1, 1, 1}
  box.begin()
  s:update(1, {{&amp;#39;+&amp;#39;, 3, 1}}) -- adds no-op REPLACE to sk write set
  s:delete(1)                -- produces deferred DELETE for sk
  box.commit()

results in

  vy_tx_handle_deferred_delete: Assertion `vy_stmt_type(stmt) == IPROTO_REPLACE&amp;#39; failed.

Fix this by making sure we set is_overwritten for all overwritten
statements in a secondary index write set.

Closes #4294

(cherry picked from commit </a><a class="double-link" href="https://github.com/tarantool/tarantool/commit/<a class="double-link" href="https://github.com/tarantool/tarantool/commit/41219774cb5a5ec91bb4b416e2ca5b96f2bf3aa0">41219774c</a>">41219774c</a><a href="https://github.com/tarantool/tarantool/commit/c5232d683f36b387c0be10b7fd64d9d208771bfd">)

41569 of 50410 relevant lines covered (82.46%)

844120.75 hits per line

Source Files on job 17463.5 (TARGET=coverage)
  • Tree
  • List 0
  • Changed 250
  • Source Changed 1
  • Coverage Changed 250
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 14241
  • Travis Job 17463.5
  • c5232d68 on github
  • Prev Job for TARGET=coverage on 1.10 (#17441.5)
  • Next Job for TARGET=coverage on 1.10 (#17468.5)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc