Skip to content

Handle Docker name reservation during concurrent backend startup - #87

Merged
LurigeLars merged 1 commit into
mainfrom
fix/shared-backend-create-race-20261014
Oct 14, 2026
Merged

LurigeLars merged 1 commit into
mainfrom
fix/shared-backend-create-race-20261014

Conversation

@LurigeLars

Copy link
Copy Markdown
Owner

Concurrent Docker creation can reserve the shared container name before the container becomes visible to inspect. A competing client then sees the name conflict and an immediate inspect miss, incorrectly failing startup. The real Docker lifecycle regression exposed this intermittently on main after #86.

On a name conflict, wait briefly and retry inspect for the same backend, with a finite bound and no additional create attempts. Other Docker failures and identity mismatches still fail closed. Await backend acquisition in the proxy and regression harness, and make the unit regression deterministically model the name-reserved/inspect-not-yet-visible interval.

Validation: 35 static/security/forwarding unit tests and the real four-process Docker lifecycle test passed locally. The shared backend already running in production is unchanged by this startup correction.

@LurigeLars
LurigeLars merged commit 75625c7 into main Oct 14, 2026
9 checks passed
@LurigeLars
LurigeLars deleted the fix/shared-backend-create-race-20261014 branch October 14, 2026 09:41
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