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

tarantool / crud / 21022334764
88%
master: 88%

Build:
Build:
LAST BUILD BRANCH: refs/tags/1.7.4
DEFAULT BRANCH: master
Ran 15 Jan 2026 07:11AM UTC
Jobs 1
Files 66
Run time 1min
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 06:45AM UTC coverage: 88.453% (+0.05%) from 88.405%
21022334764

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

79 of 87 new or added lines in 4 files covered. (90.8%)

5 existing lines in 2 files now uncovered.

5209 of 5889 relevant lines covered (88.45%)

12612.31 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
88.41
-2.13% crud/common/rebalance.lua

Uncovered Existing Lines

Lines Coverage ∆ File
1
80.52
0.0% crud/common/sharding/bucket_ref_unref.lua
4
88.41
-2.13% crud/common/rebalance.lua
Jobs
ID Job ID Ran Files Coverage
1 21022334764.1 15 Jan 2026 07:11AM UTC 66
88.45
GitHub Action Run
Source Files on build 21022334764
  • Tree
  • List 66
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #475
  • PR Base - master (#20525907996)
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