Repository navigation
Conversation
Signed-off-by: Vladislav Lapin <51929896+loglapa@users.noreply.github.com>
alex-zaitsev
self-requested a review
December 4, 2026 10:44
This branch has not been deployed
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.
The metrics exporter currently stays alive when an endpoint cannot bind because the listener error is discarded. Bind both required sockets before serving, release the metrics socket if the separate CHI bind fails, and return an endpoint-specific error so the command exits with status 1.
Related to #2178. This addresses bind failures; it does not add a health endpoint. PR #2133 changes the mux in the same block and can be combined with this startup handling.
Validation: reproduced all three occupied-port cases with the original binary in Linux ARM64 Docker; the patched binary exits with status 1 for shared metrics, split CHI, and secure split CHI conflicts. Plain/secure shared/split endpoint checks and restart after port release pass. The real exporter used a loopback Kubernetes API fixture. Affected Go packages pass, including 20 race-detector runs of the bind/cleanup regression.
Important items to consider before making a Pull Request
0.28.0), notmaster.