Skip to content

fix(sandbox): recover missing Redis timeout keys - #1353

Open
zhongwen666 wants to merge 3 commits into
alibaba:masterfrom
zhongwen666:feat/add-redis-backup-0923
Open

zhongwen666 wants to merge 3 commits into
alibaba:masterfrom
zhongwen666:feat/add-redis-backup-0923

Conversation

@zhongwen666

Copy link
Copy Markdown
Collaborator

closes #1352

Summary

Restore missing Redis timeout keys from persisted sandbox configuration so active sandboxes regain an automatic cleanup deadline without being stopped during the recovery scan.

Key changes

  • Recheck sandbox state before rebuilding timeout metadata and skip stopped, missing, or invalid records.
  • Record timeout-key recovery outcomes and run lifecycle jobs only on the primary pod.
  • Add coverage for recovery branches and expiry-scan routing.

Validation

Targeted tests: 20 passed, 1 failed. The existing test_non_primary_registers_only_auto_stop_expired still expects non-primary pods to register an expiry job, which conflicts with the updated behavior.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recover missing sandbox Redis timeout keys during expiry scans

1 participant