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

tarantool / crud / 21023588610 / 1
88%
master: 88%

Build:
Build:
LAST BUILD BRANCH: refs/tags/1.7.4
DEFAULT BRANCH: master
Ran 15 Jan 2026 08:12AM UTC
Files 66
Run time 2s
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

15 Jan 2026 07:45AM UTC coverage: 88.457% (+0.05%) from 88.405%
21023588610.1

Pull #475

github

Satbek
rebalance: move rebalance start from on_commit trigger to on_replace trigger

In order to prevent data duplication in MVCC usage case rebalance start was moved
from on_commit trigger to on_replace trigger.

This prevents situation like this:

1. vshard starts rebalancing and makes replace in `_bucket` space
2. this _bucket replace yields on commit
3. crud makes write request on storage, for example: insert in fast mode
4. this insert yields on commit
5. rebalancer starts pairing from `_bucket` space, does not see `insert`
   because it not commited yet. And processes bucket.
6. `_bucket` replace commits, starts safe mode
7. insert ends in fast mode
8. rebalancer moves bucket, which were inserted in fast mode
9. might happen duplicationrts rebalancing and makes replace in `_bucket` space

This happens because mode switches in `on_commit` trigger.

If mode switch happens in `on_replace` trigger:

1. vshard starts rebalancing and makes replace in `_bucket` space
2. in on replace trigger happens mode switch to safe mode
3. this _bucket replace yields on commit
4. crud makes write request on storage, for example: insert in safe mode
4. this insert yields on commit
5. rebalancer starts pairing from `_bucket` space and sees the ref
6. `_bucket` replace commits, starts safe mode
7. insert ends in safe mode
8. rebalancer handles refs properly
Pull Request #475: safe/fast mode: remove fiber kill

5211 of 5891 relevant lines covered (88.46%)

12549.85 hits per line

Source Files on job 21023588610.1
  • Tree
  • List 66
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21023588610
  • 9693ab1f on github
  • Prev Job for on rm_fiber_kill (#20525907996.1)
  • Next Job for on rm_fiber_kill (#21029317245.1)
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