Skip to content

Conversation

@evgeny-leksikov
Copy link
Contributor

@evgeny-leksikov evgeny-leksikov commented Dec 16, 2025

What?

UCP_ERR_HANDLING_MODE_FAILOVER fallback implementation:

  • fallback to UCP_EP_ERR_HANDLING_MODE_PEER_FAILURE, this means that behavior of error handling modes "failover" and "peer" are equal.
  • refactoring of err_mode getters and comparators

The PR depends on API proposal in #11064

Why?

@evgeny-leksikov evgeny-leksikov force-pushed the ucp_ep_err_mode_failover branch 2 times, most recently from b3f8f19 to cfe0cbe Compare December 19, 2025 22:36
@evgeny-leksikov evgeny-leksikov marked this pull request as ready for review December 19, 2025 22:37
@gleon99 gleon99 requested a review from shasson5 January 5, 2026 12:08
@evgeny-leksikov evgeny-leksikov changed the title UCP/EP: UCP_EP_INIT_ERR_MODE_FAILOVER fallback implementation UCP/EP: UCP_ERR_HANDLING_MODE_FAILOVER fallback implementation Jan 5, 2026
shasson5
shasson5 previously approved these changes Jan 13, 2026
- fallback to UCP_EP_INIT_ERR_MODE_PEER_FAILURE
- refactoring of err_mode getters and comparatort
@evgeny-leksikov evgeny-leksikov force-pushed the ucp_ep_err_mode_failover branch from 0655f1f to 46f0b4a Compare January 15, 2026 12:46
*ep_init_flags_p = (sa_data->header & UCP_SA_DATA_FLAG_ERR_MODE_PEER) ?
UCP_EP_INIT_ERR_MODE_PEER_FAILURE : 0;
UCP_EP_INIT_ERR_MODE_PEER_FAILURE :
(sa_data->header & UCP_SA_DATA_FLAG_ERR_MODE_FAILOVER) ?
Copy link
Contributor

Choose a reason for hiding this comment

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

does it break wire compatibility?

Comment on lines 1152 to 1153
(ep_init_flags & (UCP_EP_INIT_ERR_MODE_PEER_FAILURE |
UCP_EP_INIT_ERR_MODE_FAILOVER)) &&
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe define that when FAILOVER mode is enabled, both UCP_EP_INIT_ERR_MODE_FAILOVER and UCP_EP_INIT_ERR_MODE_PEER_FAILURE bits should be set?

UCS_LOG_LEVEL_DIAG :
UCS_LOG_LEVEL_ERROR;
log_level =
(ucp_ep_config_err_mode_eq(ucp_ep,
Copy link
Contributor

Choose a reason for hiding this comment

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

can we use ucp_ep_config_err_handling_enabled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants