Skip to content

fix(shard): keep the pipeline head when the metadata walk stalls - #4429

Merged
hubcio merged 10 commits into
masterfrom
fix_journal_panic
Oct 23, 2026
Merged

hubcio merged 10 commits into
masterfrom
fix_journal_panic

Conversation

@numinnex

@numinnex numinnex commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Closes #4294

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

codecov Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.31507% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 82.07%. Comparing base (a859762) to head (2df8aa7).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
core/simulator/src/lib.rs 98.03% 1 Missing ⚠️

❌ Your patch check has failed because the patch coverage (22.22%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@              Coverage Diff              @@
##             master    #4429       +/-   ##
=============================================
- Coverage     90.72%   82.07%    -8.65%     
+ Complexity     2612     2610        -2     
=============================================
  Files          1405     1399        -6     
  Lines        327848   239686    -88162     
  Branches     279618   192098    -87520     
=============================================
- Hits         297437   196726   -100711     
- Misses        24152    37044    +12892     
+ Partials       6259     5916      -343     
Components Coverage Δ
Rust Core 81.45% <99.31%> (-10.50%) ⬇️
Java SDK 75.93% <ø> (-0.04%) ⬇️
C# SDK 82.36% <ø> (-0.12%) ⬇️
Python SDK 90.89% <ø> (ø)
PHP SDK 86.14% <ø> (ø)
Node SDK 96.12% <ø> (+<0.01%) ⬆️
Go SDK 72.55% <ø> (+0.05%) ⬆️
C++ SDK 84.21% <ø> (ø)
Files with missing lines Coverage Δ
core/metadata/src/impls/metadata.rs 94.30% <100.00%> (+0.03%) ⬆️
core/shard/src/lib.rs 92.37% <100.00%> (-0.06%) ⬇️
core/simulator/src/lib.rs 97.42% <98.03%> (+<0.01%) ⬆️

... and 456 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.

@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: The change makes commit_journal report why it stopped and narrows the tick_metadata truncation trigger to BodyMissing stops. The reported findings are three comment-accuracy nits and one unobservable reset branch, and a failed WAL read still lands in the same BodyMissing classification that can truncate the suffix, a pre-existing path this change does not widen.

Counts: critical 0, warning 0, nit 3, simplification 1

Findings without an anchor on a changed line:

  • core/shard/src/lib.rs:10592 simplification: metadata_walk_stuck_op only ever records commit_min + 1, so clearing it here cannot change any later read. Delete the else arm and update the field doc to match. Saves about 3 lines.

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/shard/src/lib.rs Resolved
Comment thread core/shard/src/lib.rs Resolved
Comment thread core/simulator/src/lib.rs Resolved
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.

Metadata primary panics "committed prepare ... must be in journal" after its walk-stall detector truncates the pipeline head

3 participants