Skip to content

Conversation

@NiuYawei
Copy link
Contributor

The ds_pool::sp_map could be NULL if the pool map hasn't been populated, a non-NULL check must be performed before accessing.

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).

The ds_pool::sp_map could be NULL if the pool map hasn't been
populated, a non-NULL check must be performed before accessing.

Signed-off-by: Niu Yawei <[email protected]>
@NiuYawei NiuYawei requested review from a team as code owners December 10, 2025 02:48
@NiuYawei NiuYawei added the clean-cherry-pick Cherry-pick from another branch that did not require additional edits label Dec 10, 2025
@github-actions
Copy link

Ticket title is 'Aurora daos_perf: Server got crashed when try to set NVMe to faulty'
Status is 'Awaiting backport'
Labels: 'ALCF,alcf_prod,request_for_2.6.5'
https://daosio.atlassian.net/browse/DAOS-18264

struct pool_domain *tmp;
int i;

D_ASSERT(map != NULL);
Copy link
Contributor

Choose a reason for hiding this comment

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

could you please explain the reason for adding all those asserts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Current code can't handle 'map == NULL' case, it indicates a bug if the assert happens. Adding these asserts would be helpful on catching regressions. (if some new code calls these functions with NULL map).

@NiuYawei NiuYawei merged commit fb0279c into release/2.6 Dec 16, 2025
42 of 44 checks passed
@NiuYawei NiuYawei deleted the niu/release-26/DAOS-18264 branch December 16, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clean-cherry-pick Cherry-pick from another branch that did not require additional edits

Development

Successfully merging this pull request may close these issues.

4 participants