Skip to content

fix(api): take versionUpdateMu on Restart and rollback #1140

Closed

Description

@frahlg

Update, backup, and snapshot create take versionUpdateMu. Restart and snapshot rollback do not, so they can run while an update still talks to the sidecar.

Found on master 6eadec3f.

What happens

handleVersionUpdate / channel / backups / snapshot create use versionUpdateMu.TryLock() (go/internal/api/api_selfupdate.go, api_backups.go, snapshots.go).

handleVersionRestart calls SelfUpdate.TriggerRestart with no lock.

handleVersionRollback creates a pre-rollback snapshot and restores data with no lock.

A Restart during pull/recreate is the field-shaped hole next to #989 (rollback pin does not survive Restart). This issue is the in-process mutex, not the compose pin.

What a fix needs

Open PR overlap: none on the updater handlers.

Activity

  1. added
    bug
    on Sep 8, 2026
  2. frahlg commented on Oct 28, 2026

    @frahlg
    MemberAuthor

    Fixed: Restart and rollback take versionUpdateMu.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions