Repository navigation
Conversation
bvolpato
force-pushed
the
bvolpato/go-portable-service-readiness
branch
from
October 28, 2026 23:57
672250f to
ca16bb3
Compare
Expansion service startup accepts any TCP listener on the selected port. Another process can claim that port before the Java jar binds, which leaves the helper with an unrelated service address. Check the expansion RPC before caching the address, detect an exited jar, and clean up failed startup. A wrong-service response or a jar that exits during startup gets a bounded retry on a fresh port. Expand-only services remain supported through a single probe within the startup deadline. Use a fixed reconnect delay so that the probe sees a service that binds late in the startup deadline.
bvolpato
force-pushed
the
bvolpato/go-portable-service-readiness
branch
from
November 3, 2026 03:43
f874ecd to
3122dd2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Expansion service startup currently accepts any TCP listener on the selected port. Another process can claim that port before the Java jar binds, leaving the helper with an unrelated service address. In this CI run, the failed expansion address also appeared as a Python worker endpoint.
Check the expansion RPC before caching the address, detect an exited jar, and clean up failed startup. A wrong-service response or a jar that exits during startup gets a bounded retry on a fresh port. Expand-only services remain supported through a single probe within the startup deadline. The probe uses a fixed reconnect delay because the default gRPC backoff can outlast the startup deadline.
Reproduced the old helper accepting an unrelated gRPC listener and a real jar failing to bind the occupied port. Focused tests, the race detector, vet, and the Windows process-wrapper build passed. Real-jar startup, early exit, and startup-deadline cleanup were also checked. A local measurement with services that bound late in the startup deadline failed often with the default backoff and passed with the fixed delay. The full GoPortable container workflow was not run locally.