Skip to content

DAOS-17861 cart: avoid sending RPC reply repeatedly - #16757

Merged
gnailzenh merged 1 commit into
masterfrom
Nasf-Fan/DAOS-17861
Oct 14, 2025
Merged

gnailzenh merged 1 commit into
masterfrom
Nasf-Fan/DAOS-17861

Conversation

@Nasf-Fan

@Nasf-Fan Nasf-Fan commented Aug 22, 2025 •

Copy link
Copy Markdown
Contributor

When handle collective RPC, some failure may happen before invoking RPC handler for local node process. Then crt_hg_reply_send() may be triggered. And then in subsequent process, crt_rpc_handler_common() will call crt_hg_reply_error_send() to reply the RPC repeatedly. It is observed that the latter one maybe failed with NA_BUSY and cause the callback for former reply to be blocked or lost. Then reference on the RPC cannot be released. Such RPC leaking may cause assertion in UCX environment when destroy related CaRT context.

Allow-unstable-test: true

Steps for the author:

  • Commit message follows the guidelines.
  • Appropriate Features or Test-tag pragmas were used.
  • Appropriate Functional Test Stages were run.
  • At least two positive code reviews including at least one code owner from each category referenced in the PR.
  • Testing is complete. If necessary, forced-landing label added and a reason added in a comment.

After all prior steps are complete:

  • Gatekeeper requested (daos-gatekeeper added as a reviewer).

@github-actions

github-actions Bot commented Aug 22, 2025 •

Copy link
Copy Markdown

Ticket title is 'Segmentation fault against UCX provider during CR test'
Status is 'In Progress'
Labels: '2.8pp'
https://daosio.atlassian.net/browse/DAOS-17861

@Nasf-Fan
Nasf-Fan force-pushed the Nasf-Fan/DAOS-17861 branch 4 times, most recently from fa37d57 to 8e8dfb3 Compare September 3, 2025 09:50
@Nasf-Fan
Nasf-Fan force-pushed the Nasf-Fan/DAOS-17861 branch 2 times, most recently from 9ba7691 to 9a773f1 Compare September 8, 2025 09:14
@daosbuild3

Copy link
Copy Markdown
Collaborator

Test stage Functional Hardware Medium MD on SSD completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-16757/9/execution/node/1468/log

@Nasf-Fan

Copy link
Copy Markdown
Contributor Author

Resolve merge conflict.

@daosbuild3

Copy link
Copy Markdown
Collaborator

Test stage Functional Hardware Large MD on SSD completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-16757/10/execution/node/1307/log

When handle collective RPC, some failure may happen before invoking
RPC handler for local node process. Then crt_hg_reply_send() may be
triggered. And then in subsequent process, crt_rpc_handler_common()
will call crt_hg_reply_error_send() to reply the RPC repeatedly. It
is observed that the latter one maybe failed with NA_BUSY and cause
the callback for former reply to be blocked or lost. Then reference
on the RPC cannot be released. Such RPC leaking may cause assertion
in UCX environment when destroy related CaRT context.

Allow-unstable-test: true

Signed-off-by: Fan Yong <fan.yong@hpe.com>
@Nasf-Fan
Nasf-Fan marked this pull request as ready for review September 25, 2025 04:50
@Nasf-Fan
Nasf-Fan requested review from a team as code owners September 25, 2025 04:50
@Nasf-Fan

Copy link
Copy Markdown
Contributor Author

Ping reviewers, thanks!

@Nasf-Fan
Nasf-Fan requested a review from a team October 14, 2025 04:17
@gnailzenh
gnailzenh merged commit 69116f4 into master Oct 14, 2025
42 of 43 checks passed
@gnailzenh
gnailzenh deleted the Nasf-Fan/DAOS-17861 branch October 14, 2025 08:56
frostedcmos added a commit that referenced this pull request Oct 17, 2025
mchaarawi added a commit that referenced this pull request Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants