Skip to content

[BUG] 0-Replica component start gets stuck in Starting phase #10813

Description

@zero2hj

Describe the bug
When stopping a component that originally had 0 replicas (e.g., dmmonitor in standalone mode), it enters an unrecoverable status. If it is subsequently started:

  1. The snapshot annotation apps.kubeblocks.io/stop-replicas-snapshot is never removed from etcd.
  2. Desired replica modifications (e.g., scaling from 0 to 1) are discarded.
  3. The component remains permanently stuck in the Starting phase, and the parent Cluster remains permanently stuck in Updating.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy a cluster that contain 0-replica component
  2. Stop the cluster
  3. Start the cluster

Expected behavior
The 0-replica component can clear its stop-snapshot and can be furtuer used.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions