Skip to content

fix(partitions): finish state transfer for a replica whose view ran ahead - #4483

Merged
numinnex merged 12 commits into
masterfrom
state_transfer_view_change
Oct 24, 2026
Merged

numinnex merged 12 commits into
masterfrom
state_transfer_view_change

Conversation

@numinnex

@numinnex numinnex commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Closes #4438

Co-authored-by: Mark Aron Szulyovszky [email protected]

@github-actions github-actions Bot added the S-waiting-on-review PR is waiting on a reviewer label Oct 9, 2026
@codecov

codecov Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.90881% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.62%. Comparing base (dbb9d2c) to head (351e56f).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
core/partitions/src/iggy_partition.rs 96.75% 9 Missing and 4 partials ⚠️
core/shard/src/lib.rs 95.41% 2 Missing and 4 partials ⚠️
core/partitions/src/journal.rs 95.83% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4483      +/-   ##
============================================
- Coverage     90.75%   84.62%   -6.13%     
  Complexity     2610     2610              
============================================
  Files          1406     1400       -6     
  Lines        331885   269911   -61974     
  Branches     283659   221686   -61973     
============================================
- Hits         301209   228425   -72784     
- Misses        24374    35426   +11052     
+ Partials       6302     6060     -242     
Components Coverage Δ
Rust Core 84.70% <96.90%> (-7.27%) ⬇️
Java SDK 75.97% <ø> (+0.04%) ⬆️
C# SDK 82.38% <ø> (-0.04%) ⬇️
Python SDK 90.89% <ø> (ø)
PHP SDK 86.14% <ø> (ø)
Node SDK 96.12% <ø> (ø)
Go SDK 72.62% <ø> (+0.10%) ⬆️
C++ SDK 84.21% <ø> (ø)
Files with missing lines Coverage Δ
core/consensus/src/impls.rs 96.92% <100.00%> (+0.04%) ⬆️
core/partitions/src/types.rs 83.21% <ø> (ø)
core/server/src/partition_reconciler.rs 97.93% <100.00%> (+<0.01%) ⬆️
core/shard/src/partition_io.rs 98.50% <100.00%> (+<0.01%) ⬆️
core/partitions/src/journal.rs 94.18% <95.83%> (-0.01%) ⬇️
core/shard/src/lib.rs 92.14% <95.41%> (+0.08%) ⬆️
core/partitions/src/iggy_partition.rs 94.37% <96.75%> (-0.05%) ⬇️

... and 417 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

numinnex and others added 3 commits October 12, 2026 19:22
# Conflicts:
#	core/partitions/src/iggy_partition.rs
#	core/server/src/partition_reconciler.rs
#	core/shard/src/lib.rs
#	core/shard/src/partition_io.rs
#	core/shard/src/poll/completion_tests.rs
@hubcio

hubcio commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

/skill team-review-slim

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary: Four warnings on the repair, transfer and peer-choice paths: the metadata plane still picks its repair peer by view math, tick_partitions computes repair_pull_from() every tick, repair_window_anchor re-hashes a journal batch to read one field, and the floor-moot check can miss after one capped commit walk, so a moot floor can still spend a state transfer. The view gate, the primary hint and the floor-connect logic trace sound, and no correctness defect was proven; five nits and one simplification follow.

Counts: critical 0, warning 4, nit 5, simplification 1


This review was generated by Claude Code 2.1.284 on deepseek-flash[1m]. Review the output before you act on it.

Comment thread core/partitions/src/iggy_partition.rs Resolved
Comment thread core/partitions/src/iggy_partition.rs Resolved
Comment thread core/shard/src/lib.rs Resolved
Comment thread core/shard/src/lib.rs Resolved
Comment thread core/shard/src/lib.rs Resolved
Comment thread core/shard/src/lib.rs Resolved
Comment thread core/partitions/src/types.rs Resolved
Comment thread core/partitions/src/iggy_partition.rs Resolved
Comment thread core/partitions/src/iggy_partition.rs Resolved
Comment thread core/shard/src/lib.rs Resolved
@github-actions github-actions Bot added S-waiting-on-author PR is waiting on author response and removed S-waiting-on-review PR is waiting on a reviewer labels Oct 14, 2026
@numinnex
numinnex merged commit f7dc8cf into master Oct 24, 2026
85 checks passed
@numinnex
numinnex deleted the state_transfer_view_change branch October 24, 2026 08:28
@github-actions github-actions Bot removed the S-waiting-on-author PR is waiting on author response label Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Partition replica stuck after rolling crash-restarts: state transfer never completes while it keeps serving its stale prefix

3 participants