Skip to content

DAOS-18957 mgmt: improper assert#18236

Open
NiuYawei wants to merge 1 commit into
masterfrom
niu/DAOS-18957
Open

DAOS-18957 mgmt: improper assert#18236
NiuYawei wants to merge 1 commit into
masterfrom
niu/DAOS-18957

Conversation

@NiuYawei
Copy link
Copy Markdown
Contributor

Fix the improper assert in ds_mgmt_pool_query_targets() which overlooked the case of querying down target.

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

Fix the improper assert in ds_mgmt_pool_query_targets() which
overlooked the case of querying down target.

Signed-off-by: Niu Yawei <yawei.niu@hpe.com>
@github-actions
Copy link
Copy Markdown

Ticket title is 'dmg pool query-targets failing for partially excluded ranks'
Status is 'In Review'
Labels: 'request_for_2.8'
https://daosio.atlassian.net/browse/DAOS-18957

Comment thread src/mgmt/srv_pool.c
if (*mem_file_bytes == 0) {
*mem_file_bytes = mem_bytes;
} else {
D_ASSERT(mem_bytes == 0 || *mem_file_bytes == mem_bytes);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The mem_bytes is from network, is it safe to assert that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think it's fine. The PRC was successfully unpacked upon arrival, therefore, the invalid number points to a software bug rather than a transfer error.

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.

3 participants