Skip to content

fix(store): keep a retained policy with the replacement on local renames - #1412

Closed
scttbnsn wants to merge 2 commits into
dev/v1.8from
fix/v1.8-rename-guard-local-policy
Closed

scttbnsn wants to merge 2 commits into
dev/v1.8from
fix/v1.8-rename-guard-local-policy

Conversation

@scttbnsn

Copy link
Copy Markdown
Contributor

Fixes DR-147. With watchall on, when a replaced container's renamed old copy is still listed after the discovery settle, the old row could be re-reported first and consume the update policy stashed for the replacement, leaving a duplicate row.

The stale same-name delete now names the replacement's Docker id on the stash, and only that id consumes it. I didn't drop the agent-only gate on the live-predecessor fallback: it would let the old row inherit from the replacement when the replacement is reported first. Agent-owned and plain recreates behave as before.

Held for 1.8.1.

A stash left by a stale same-name delete is now named for the replacement's Docker id, so a re-report of the renamed old container cannot consume it first.
@vercel

vercel Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Ready Ready Preview Oct 19, 2026 9:25pm UTC
drydockdemo-website Ready Ready Preview Oct 19, 2026 9:25pm UTC

@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

The stash records the removed row's Docker id on its own retention entry, and only a re-insert of that id is refused. Any other id can still take it, so a skipped replacement no longer strands the policy, and there's no second map to leak.
scttbnsn added a commit that referenced this pull request Oct 20, 2026
* fix(agent): detect half-open agent event streams (#1405)

* fix(compose): fill the operation record like the Docker action (#1406)

* fix(watcher): don't hold update results for release notes (#1409)

* perf(store): use the stats projection for counts (#1411)

* fix(store): keep a retained policy with the replacement on local renames (#1412)

* fix(api): build the dependency graph from the listed containers (#1419)

* fix(agent): tell Portwing timeouts apart from unreachable agents (#1422)

* feat(api): include versions in update-operation-changed events (#1427)

* feat(notifications): show why a notification was skipped (#1429)

* docs(changelog): sort the batch B entries into their sections
@scttbnsn

Copy link
Copy Markdown
Contributor Author

Landed in #1433 as part of folding the reviewed 1.8 work into 1.8.0.

@scttbnsn scttbnsn closed this Oct 20, 2026
@scttbnsn
scttbnsn deleted the fix/v1.8-rename-guard-local-policy branch October 20, 2026 13:28

This branch was successfully deployed

2 active deployments
Preview – drydock-website — f08b4a36 Deployed Oct 19, 2026 by vercel[bot]
Preview – drydockdemo-website — f08b4a36 Deployed Oct 19, 2026 by vercel[bot]
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.

1 participant