Sandbox-manager keeps a row in sandbox_runtime_upgrade_attempt_outcomes for each runtime upgrade attempt's final outcome, and nothing removes it. The rows are kept on purpose: the table has no foreign key to sandboxes and delete_sandbox leaves them (crates/l30_storage/sbx/mgr/store/src/db.rs), so a delayed retry of a settled attempt can still be answered after its sandbox's row is gone. PR #1756 adds sandbox_runtime_upgrade_abandoned with the same lifetime: one row per abandoned operation, kept past its sandbox and never pruned.
Why it matters:
- Both tables grow for as long as the node's store lives.
- The down migration of
20261114030002_sandbox_runtime_upgrade_attempt_outcomesrefuses while the table holds any row, and PR #1756's refuses once the node has abandoned an operation, so an operator has to delete the rows by hand before running either.
Proposed approach: give each table a retention bound and a prune. A row only has to outlive the last retry, read or late call it answers. Sandbox-manager doesn't know that bound today: PR #1753 notes that a late call is bounded by the CRI create deadline, a deployment setting sandbox-manager doesn't have. So the first decision is where the bound comes from. Pruning a row early lets a delayed retry of that attempt, or a late call for that abandoned operation, run again, so the prune needs a test for each.
Severity: low. Each row is small, and there's one per operation and attempt with a final outcome, or one per abandoned operation. The cost is unbounded growth on a long-lived node and a manual delete before either down migration.
AI assistance: Perplexity Computer drafted this issue.
Activity
0No activity yet.