-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
roachtest: report health status during teardown #102636
roachtest: report health status during teardown #102636
Conversation
64768ea
to
32f3211
Compare
32f3211
to
6558c93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @renatolabs and @smg260)
pkg/cmd/roachtest/test_runner.go
line 1106 at r1 (raw file):
var validationNode int for _, s := range statuses { if s.Err != nil {
Nit: use of a switch or two continues might be cleaner / more go idiomatic like.
pkg/cmd/roachtest/test_runner.go
line 1125 at r1 (raw file):
// not seem to be enough. // // TODO(testinfra): figure out why this can still get stuck despite the
Nit: Should we update this comment or is the issue mentioned still likely to happen (leave the comment for future ref)?
6558c93
to
024c02d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @herkolategan and @renatolabs)
pkg/cmd/roachtest/test_runner.go
line 1106 at r1 (raw file):
Previously, herkolategan (Herko Lategan) wrote…
Nit: use of a switch or two continues might be cleaner / more go idiomatic like.
Thanks. Updated to be more in line with style guide
pkg/cmd/roachtest/test_runner.go
line 1125 at r1 (raw file):
Previously, herkolategan (Herko Lategan) wrote…
Nit: Should we update this comment or is the issue mentioned still likely to happen (leave the comment for future ref)?
It is possible that the changes in this PR help, but I'd prefer to keep the comment there for now.
Previously, renatolabs (Renato Costa) wrote…
Yes it can, thanks. An early version used |
of all nodes in test teardown. Validations can use a db connection from any node which has a status of 200. Epic: none Release note: none Informs: cockroachdb#102603
024c02d
to
67e1af7
Compare
Might be good to run a few roachtests on this branch before merging. |
TC job for this branch running a subset of roachtests TC result: |
TFTR bors r=herkolategan,renatolabs |
Build succeeded: |
roachtest: report health status of all nodes in teardown
In #102622, we changed how to determine if a node was suitable to connect to for post test validations, to first check a node's
health?ready=1
endpoint.This extends that PR by extracting the
http://node:port/health?ready=1
functionality, and using it to report on each node during teardown by logging thestatus
and/orbody
orerror
. Finding a live node piggy backs of this information to create a connection to any node with200
status.This could be useful to add to
test_interface
Epic: none
Release note: none