cls/rbd: don't use read API for write-like methods#61471
Conversation
This is a follow-up for commit af17631 (objclass: change objclass exec read calls to write ones where needed) which missed mirror_uuid_set and raced with the addition of mirror_remote_namespace_set. Fixes: https://tracker.ceph.com/issues/65889 Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
|
jenkins test api |
|
@idryomov it looks like this is an easy mistake to make. Should we be renaming the API to make it clear that it should only be used for read execs? Should we be trying to perform balanced/local optimizations at all for execs - are these performance critical enough to justify the optimization or should we just be routing all execs to the primary? |
It's a public librados API that has been around in its current form since 2011, so renaming is probably not in the cards. Note that the potential confusion extends wider than just @athanatos @yehudasa Perhaps OSDs could be taught to fail
I think it depends on the workload. For RBD, it likely doesn't matter. RGW uses object class methods much more, so there the optimization might well be worth it. Routing all execs to the primary is what ended up happening in #56180 after all, albeit with a new |
This is a follow-up for commit af17631 (objclass: change objclass exec read calls to write ones where needed) which missed mirror_uuid_set and raced with the addition of mirror_remote_namespace_set.
Fixes: https://tracker.ceph.com/issues/65889
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. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.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 windowsjenkins test rook e2e