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

chideat / valkey-operator / 23090196489
22%

Build:
DEFAULT BRANCH: main
Ran 14 Mar 2026 02:53PM 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 02:49PM UTC coverage: 22.39% (+0.09%) from 22.302%
23090196489

push

github

web-flow
fix: prevent data loss during cross-version rolling upgrade (#66)

* 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>

* fix: improve test coverage for shutdown dbsize check to fix Coveralls failure

Extract shutdownNode helper in cluster and failover packages, switch
from Info().Dbsize to DBSIZE command for testability with miniredis,
and replace no-op tests with real tests that exercise both branches.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

23 of 32 new or added lines in 2 files covered. (71.88%)

4615 of 20612 relevant lines covered (22.39%)

0.26 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
7.14
7.14% cmd/helper/commands/cluster/shutdown.go
6
13.19
3.77% cmd/helper/commands/failover/shutdown.go
Jobs
ID Job ID Ran Files Coverage
1 23090196489.1 14 Mar 2026 02:53PM UTC 146
22.39
GitHub Action Run
Source Files on build 23090196489
  • Tree
  • List 146
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7f9290dd on github
  • Prev Build on main (#23089980918)
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