Skip to content

fix(gateway): retry watch sandbox updates after a lost CAS - #6072

Open
ericcurtin wants to merge 1 commit into
ai-openshell:mainfrom
ericcurtin:fix/5959-watch-update-retry/ericcurtin
Open

ericcurtin wants to merge 1 commit into
ai-openshell:mainfrom
ericcurtin:fix/5959-watch-update-retry/ericcurtin

Conversation

@ericcurtin

Copy link
Copy Markdown
Contributor

Summary

Retry a watch-driven sandbox update that loses a CAS race instead of dropping it.

Related Issue

Closes #5959

Changes

  • Retry up to 3 times, redoing the read and revalidation each time
  • Other store errors still fail at once
  • Warn with the sandbox name after the limit
  • Sweeps treat a lost CAS as covered by the next sweep

Testing

  • Checks appropriate to the affected code and behavior pass
  • Unit tests added/updated (if applicable)
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@ericcurtin

Copy link
Copy Markdown
Contributor Author

@FrostGod @pimlock PTAL when you get a chance. Thank you!

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.

bug: watch-driven sandbox updates are dropped after a CAS conflict

1 participant