-
Notifications
You must be signed in to change notification settings - Fork 14
Fix invalid parameter issue when force to close endpoint #25
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?
Fix invalid parameter issue when force to close endpoint #25
Conversation
|
@petro-rudenko could you help to review the code change? Thanks. |
| val ep = worker.newEndpoint(new UcpEndpointParams().setName(s"Server connection to $executorId") | ||
| .setUcpAddress(workerAddress)) | ||
| .setUcpAddress(workerAddress) | ||
| .setPeerErrorHandlingMode() |
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.
@yosefe does peerErrorHandling mode works with connect by worker address?
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.
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.
In UCX,
ucs_status_ptr_t ucp_ep_close_nbx(ucp_ep_h ep, const ucp_request_param_t *param)
{
ucp_worker_h worker = ep->worker;
void *request = NULL;
ucp_request_t *close_req;
if ((ucp_request_param_flags(param) & UCP_EP_CLOSE_FLAG_FORCE) &&
(ucp_ep_config(ep)->key.err_mode != UCP_ERR_HANDLING_MODE_PEER)) {
return UCS_STATUS_PTR(UCS_ERR_INVALID_PARAM);
}
when force to close the ep, it will also check the flag UCP_ERR_HANDLING_MODE_PEER setting.
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 you please sign your commit |
Signed-off-by: Brian Sheng <bins@nvidia.com>
31ac160 to
4cdaece
Compare
Signed-off-by: Brian Sheng <bins@nvidia.com>
|
Signed. Thanks Peter. |
What
Fix invalid parameter exception when force to close endpoint.
Why ?
When
UcxWorkerWrapperforces close the endpoints, it will hitorg.openucx.jucx.UcxException: Invalid parameterissue. It's because in UCX native code,ucp_ep_close_nbx, whenUCP_EP_CLOSE_FLAG_FORCEis set,UCP_ERR_HANDLING_MODE_PEERalso has to be set to key's err_mode.How ?
Call
setPeerErrorHandlingModeto setUCP_ERR_HANDLING_MODE_PEERwhen create endpoint connection and callsetErrorHandlerto set error handling code as well.