kubeblocks icon indicating copy to clipboard operation
kubeblocks copied to clipboard

[BUG] Legacy InstanceSet availability retry delays missing Pod recovery

Open leon-ape opened this issue 3 weeks ago • 0 comments

Description

In the legacy InstanceSet controller, status reconciliation returns the terminating RetryAfter result while a Ready Pod is waiting for minReadySeconds. This also skips replica alignment, even when the configured Parallel policy has enough concurrency to repair a different missing Pod.

Reproduction

  1. Create a two-replica legacy InstanceSet with Parallel Pod management and a positive minReadySeconds.
  2. Make both Pods Ready without satisfying the availability waiting period.
  3. Delete one Pod unexpectedly and reconcile the InstanceSet.

The remaining Pod is Ready but not Available. Status reconciliation schedules a one-second retry and prevents the missing Pod from being recreated until the other Pod's availability wait ends.

Expected behavior

Keep the availability retry while allowing the existing alignment reconciler to apply its own concurrency and predecessor checks. Repairing the missing Pod must retain the observed readiness deficit and leave retained PVCs unchanged.

TestLegacyInstanceSetRepairsMissingPodWhileWaitingAvailable reproduces the missing Pod on main b88a2fcb3 and passes when the existing status result is changed to ContinueWithRetryAfter(time.Second).

Affected branches

  • Main and release-1.1 reproduce the problem. The existing continuing delayed-retry result supports the one-line status fix in #11027.
  • Release-1.0 also reproduces blocked recovery through the controller entry. It lacks the continuing delayed-retry support from #11109, so it needs an independent adaptation rather than a direct cherry-pick of #11027.

leon-ape avatar Nov 12 '26 09:11 leon-ape