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
quincy: rbd: find_action() should sort actions first #47584
Conversation
The order in which objects with static storage duration in different TUs are initialized is undefined. If the compiler chooses to initialize Shell::Action objects in action/Trash.cc before Shell::Action objects in action/TrashPurgeSchedule.cc, all "rbd trash purge schedule ..." commands get shadowed by "rbd trash purge" command: $ rbd trash purge schedule list rbd: too many arguments The confusing error arises because "rbd trash purge" takes a single positional argument. "schedule" gets interpreted as <pool-spec> and "list" generates an error. Fixes: https://tracker.ceph.com/issues/57107 Signed-off-by: Ilya Dryomov <idryomov@gmail.com> (cherry picked from commit e0b428a)
- std::includes() requires sorted ranges but command specs aren't sorted - std::includes() purpose is to check whether the second range is a subsequence of the first range but here the size of the second range is always equal to the size of the first range, which means that, had the ranges been sorted, std::includes() would have checked straight equality Signed-off-by: Ilya Dryomov <idryomov@gmail.com> (cherry picked from commit 1483e2a)
jenkins test make check |
1 similar comment
jenkins test make check |
jenkins test api |
jenkins test api |
1 similar comment
jenkins test api |
@idryomov api tests failing fyi |
Not an RBD issue, see #47325 (comment). |
jenkins test api |
Rados suite review: https://pulpito.ceph.com/?branch=wip-yuri7-testing-2022-08-17-0943-quincy Failures, unrelated: Details: |
backport tracker: https://tracker.ceph.com/issues/57124
backport of #47570
parent tracker: https://tracker.ceph.com/issues/57107