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

chideat / valkey-operator / 23088180437
22%
main: 22%

Build:
Build:
LAST BUILD BRANCH: fix/cross-version-rolling-upgrade-data-loss
DEFAULT BRANCH: main
Ran 14 Mar 2026 12:46PM UTC
Jobs 1
Files 146
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

14 Mar 2026 12:42PM UTC coverage: 22.282% (-0.02%) from 22.302%
23088180437

Pull #66

github

chideat
fix: use SHUTDOWN NOSAVE when dbsize is 0 to prevent data loss during cross-version rolling upgrade

During a rolling upgrade (e.g. 7.2 → 9.0), a node demoted to replica may attempt
a fullsync from the new-version master. If the RDB format is incompatible, the load
fails after memory has already been cleared, leaving an empty in-memory state.
A subsequent SHUTDOWN (with save) would then overwrite the valid dump.rdb with empty data.

Fix: re-check Dbsize right before SHUTDOWN. If 0, use SHUTDOWN NOSAVE to preserve the
existing dump.rdb (which holds valid pre-upgrade data). If >0, use normal SHUTDOWN.

Applies to both failover/sentinel and cluster shutdown paths.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Pull Request #66: fix: prevent data loss during cross-version rolling upgrade

0 of 26 new or added lines in 2 files covered. (0.0%)

2 existing lines in 1 file now uncovered.

4591 of 20604 relevant lines covered (22.28%)

0.26 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
12
0.0
0.0% cmd/helper/commands/cluster/shutdown.go
14
9.12
-0.3% cmd/helper/commands/failover/shutdown.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
0.0
0.0% cmd/helper/commands/cluster/shutdown.go
Jobs
ID Job ID Ran Files Coverage
1 23088180437.1 14 Mar 2026 12:46PM UTC 146
22.28
GitHub Action Run
Source Files on build 23088180437
  • Tree
  • List 146
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #66
  • PR Base - main (#23088168983)
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