-
Notifications
You must be signed in to change notification settings - Fork 516
UCP/EP: UCP_ERR_HANDLING_MODE_FAILOVER fallback implementation #11067
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
base: master
Are you sure you want to change the base?
UCP/EP: UCP_ERR_HANDLING_MODE_FAILOVER fallback implementation #11067
Conversation
b3f8f19 to
cfe0cbe
Compare
- fallback to UCP_EP_INIT_ERR_MODE_PEER_FAILURE - refactoring of err_mode getters and comparatort
0655f1f to
46f0b4a
Compare
src/ucp/core/ucp_ep.c
Outdated
| *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) ? |
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.
does it break wire compatibility?
src/ucp/core/ucp_ep.c
Outdated
| (ep_init_flags & (UCP_EP_INIT_ERR_MODE_PEER_FAILURE | | ||
| UCP_EP_INIT_ERR_MODE_FAILOVER)) && |
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.
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?
src/ucp/core/ucp_ep.c
Outdated
| UCS_LOG_LEVEL_DIAG : | ||
| UCS_LOG_LEVEL_ERROR; | ||
| log_level = | ||
| (ucp_ep_config_err_mode_eq(ucp_ep, |
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.
can we use ucp_ep_config_err_handling_enabled?
What?
UCP_ERR_HANDLING_MODE_FAILOVERfallback implementation:UCP_EP_ERR_HANDLING_MODE_PEER_FAILURE, this means that behavior of error handling modes "failover" and "peer" are equal.The PR depends on API proposal in #11064
Why?