-
Notifications
You must be signed in to change notification settings - Fork 587
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
[v24.2.x] admin: remove throw
on unknown self test type in admin_server
#22698
[v24.2.x] admin: remove throw
on unknown self test type in admin_server
#22698
Conversation
For logging purposes, when an unrecognized test type is requested through the `self_test_start_handler`, it will be abstracted by the `unknown_check` struct. (cherry picked from commit aa93f3f)
(cherry picked from commit 93b1901)
This commit removes the `throw` statement in `admin_server::self_test_start_handler()` and replaces it instead with a `push_back()` to `self_test_request::unknown_checks`. Eventually, these unknown checks will have a result displayed when `rpk cluster self-test status` is invoked. For the self-test, any unrecognized tests will be appended to `start_test_request::unknown_checks`, so a future result from `rpk cluster self-test status` will return a message indicating an unknown test was skipped. (cherry picked from commit 4e99539)
For testing of the previous change in which unknown test types are added to `start_test_request::unknown_checks`, instead of resulting in a `throw`. (cherry picked from commit 3bac4dc)
`test_type` was not being set in early exit cases for `cloudcheck`. This would result in longer than expected output (with `IOPS`, `THROUGHPUT`, `LATENCY` in `rpk cluster self-test status`). (cherry picked from commit 147d5e9)
@@ -321,14 +341,15 @@ struct empty_request | |||
struct start_test_request | |||
: serde::envelope< | |||
start_test_request, | |||
serde::version<0>, | |||
serde::version<1>, |
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.
This serde::version<>
needs bumping to serde::version<2>
, here and in dev
, since serde::version<0>
is the version of start_test_request
with just diskcheck_opts
, netcheck_opts
, serde::version<1>
is the version with unknown_checks
added, and serde::version<2>
needs to reflect the most recently added cloudcheck_opts
.
Backport of PR #21370