Skip to content

[bootstrap] Clarify distinction between service extraction and launching #137

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

Merged
merged 1 commit into from
Jun 29, 2021

Conversation

smklein
Copy link
Collaborator

@smklein smklein commented Jun 29, 2021

Basically, had some typos in a previous revision. Updating logs / comments for accuracy.

@smklein smklein requested a review from iliana June 29, 2021 15:44
@smklein
Copy link
Collaborator Author

smklein commented Jun 29, 2021

FYI @bnaecker seeing some test flake related to Oximeter (and, AFAICT, not this patch) on the actions here:

---- test_disks stdout ----
log file: "/tmp/test_disks-05e167aa628d6026-test_disks.18535.0.log"
note: configured to log to "/tmp/test_disks-05e167aa628d6026-test_disks.18535.0.log"
thread 'test_disks' panicked at 'called `Result::unwrap()` on an `Err` value: Failed to discover port from ClickHouse log file', omicron-nexus/tests/common/mod.rs:80:72
error: test failed, to rerun pass '-p omicron-nexus --test test_disks'
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
WARN: dropped CockroachInstance without cleaning it up first (there may still be a child process running and a temporary directory leaked)

Seems related to #130

@bnaecker
Copy link
Collaborator

@smklein Thanks for bubbling that up. I've not seen that, either locally or in testing, so I'll dig into it.

@bnaecker
Copy link
Collaborator

I think I know what's going on here. We use BufReader to read lines from the ClickHouse log file, searching for one with the port number in it. There's nothing ensuring that the target line is in the output when it's opened and read by this code. It seems likely the reader is hitting EOF before the line is found. I'll try to verify this, and put some checks in place. Thanks @smklein!

Copy link
Contributor

@iliana iliana left a comment

Choose a reason for hiding this comment

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

Yep, enabling a service sure does happen in BootstrapAgent::enable_service and not here!

@smklein smklein merged commit 8d0ff7b into main Jun 29, 2021
@smklein smklein deleted the bootstrap-typos branch June 29, 2021 20:00
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.

3 participants