-
Notifications
You must be signed in to change notification settings - Fork 594
UCT/BASE: revert log level and token cap #11851
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1048,7 +1048,7 @@ ucs_log_level_t uct_base_iface_failure_log_level(uct_base_iface_t *iface, | |||||
| ucs_status_t err_handler_status, | ||||||
| ucs_status_t status) | ||||||
| { | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The condition change is a behavioral regression for a documented, valid handler return value. |
||||||
| if (UCS_STATUS_IS_ERR(err_handler_status)) { | ||||||
| if (err_handler_status != UCS_OK) { | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| return UCS_LOG_LEVEL_FATAL; | ||||||
| } else if ((status == UCS_ERR_ENDPOINT_TIMEOUT) || | ||||||
| (status == UCS_ERR_CONNECTION_RESET)) { | ||||||
|
|
||||||
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.
UCS_INPROGRESSis a documented valid return ofuct_error_handler_t("error handling in progress"), but changing the condition fromUCS_STATUS_IS_ERR(err_handler_status)toerr_handler_status != UCS_OKnow treats it as FATAL. This function is shared by cma, srd, rc_verbs, rc_mlx5, and dc_mlx5 failure paths, so a handler returningUCS_INPROGRESSwould now cause a FATAL log (process abort) instead of the normal per-transport failure level. Is escalatingUCS_INPROGRESSto FATAL intended? If not, keepUCS_STATUS_IS_ERR(err_handler_status).