Repository navigation
test: futex fail if more notification sent after destroy - #51729
Merged
yuriw merged 1 commit intoJun 5, 2023
Merged
Conversation
Member
|
jenkins test make check |
ljflores
approved these changes
May 24, 2023
When testing with more then 1 completion, we may hit an issue with semaphors been notify after destroy. we should add wait for each completion and not destroy the sem. before all notified. Fixes: https://tracker.ceph.com/issues/57310 Signed-off-by: Nitzan Mordechai <[email protected]>
NitzanMordhai
force-pushed
the
wip-nitzan-striper-api-aio-futex-wait
branch
from
May 28, 2023 04:50
1b237a0 to
06411ce
Compare
LeonGao91
added a commit
to LeonGao91/ceph
that referenced
this pull request
May 28, 2026
verify_upmap() walks each step of a CRUSH rule and, for each choose_firstn/choose_indep step at a non-leaf type, asserts that the number of distinct parents of that type in the candidate up set does not exceed the step's numrep. This is correct for a single-level rule, but it ignores the fact that an inner choose step's numrep is per outer-bucket-result. For an EC 6+4 pool with the rule take <root> choose_indep 5 type pod choose_indep 2 type rack chooseleaf_indep 1 type osd emit a valid up set legitimately contains 10 distinct racks (2 per pod * 5 pods). The current check evaluates 10 > 2 and returns -EINVAL, so any pg-upmap-items the operator sets is silently removed by check_pg_upmaps in the next osdmap epoch. Track a running product of numrep across prior choose/chooseleaf steps in the current TAKE..EMIT scope. Compare each inner choose step's parents_of_type count against numrep * outer_numrep_product instead of numrep alone. Reset the product on TAKE and EMIT so multi-rule scripts behave correctly. Single-level rules behave identically: outer_numrep_product is 1 for the first choose step after TAKE. Builds on prior unmerged patches in tracker ceph#51729 (Laura Flores's wip-tracker-51729 branch, comment ceph#22, and Andras Pataki's revision in comment ceph#24). This revision keeps the running product separate from type_stack to preserve per-level numrep semantics, resets it across multiple TAKE..EMIT scopes, and is paired with unit-test coverage in a follow-up commit. Fixes: https://tracker.ceph.com/issues/51729 Suggested-by: Laura Flores <[email protected]> Suggested-by: Andras Pataki <[email protected]> Signed-off-by: Leon Gao <[email protected]>
LeonGao91
added a commit
to LeonGao91/ceph
that referenced
this pull request
May 28, 2026
Add two unit tests to cover the verify_upmap fix: * verify_upmap_nested_choose -- builds a multi-level CRUSH rule (choose pod, choose rack, chooseleaf osd) shaped like the multi-level EC rules reported in tracker ceph#51729 (e.g. the rack/chassis/host rule in note ceph#9, the pod/rack/osd rule in note ceph#24). Asserts natural CRUSH outputs and same-rack upmap targets validate, while genuinely invalid up sets (spanning more pods than numrep allows) are still rejected. * verify_upmap_single_level -- regression guard for plain single-level chooseleaf rules; ensures the new outer_numrep_product accounting does not change behavior for the common single-step case. The first test fails on the unfixed verify_upmap because the inner choose-rack step counts 4 distinct racks against numrep=2 and returns -EINVAL. Related: https://tracker.ceph.com/issues/51729 Signed-off-by: Leon Gao <[email protected]>
This was referenced Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When testing with more then 1 completion, we may hit an issue with semaphors been notify after destroy.
we should add wait for each completion and not destroy the sem. before all notified.
Fixes: https://tracker.ceph.com/issues/57310
Signed-off-by: Nitzan Mordechai [email protected]
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows