Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression in metrics startup order #1440

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

Kern--
Copy link
Contributor

@Kern-- Kern-- commented Dec 19, 2024

Issue #, if available:
N/A

Description of changes:
Before this change, if the metrics socket was a unix socket, SOCI would
not create the parent dir before trying to bind. This exposed an
implicit dependency on bind order if you tried to put the metrics
address next to the main socket which we broke when we introduced
systemd socket activation.

This change ensures that we create the parent dir before binding the
metrics socket.

Testing performed:
GO_TEST_FLAGS='-run TestSnapshotterStartup' make integration

I verified that the updated test failed before the snapshotter change and succeeds after.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Kern-- Kern-- requested a review from a team as a code owner December 19, 2024 22:41
@github-actions github-actions bot added go Pull requests that update Go code testing Unit and/or integration tests labels Dec 19, 2024
Before this change, if the metrics socket was a unix socket, SOCI would
not create the parent dir before trying to bind. This exposed an
implicit dependency on bind order if you tried to put the metrics
address next to the main socket which we broke when we introduced
systemd socket activation.

This change ensures that we create the parent dir before binding the
metrics socket.

Signed-off-by: Kern Walster <[email protected]>
@Kern-- Kern-- force-pushed the fix-metrics-socket branch from 6086ab6 to e1af74e Compare December 19, 2024 23:35
Copy link
Contributor

@austinvazquez austinvazquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Kern-- Kern-- merged commit aa306e4 into awslabs:main Dec 20, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code testing Unit and/or integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants