Repository navigation
osdc: setting rados_replica_read_policy to default should clear extra_flags - #70707
Conversation
JonBailey1993
left a comment
There was a problem hiding this comment.
A couple of points from reviewing
| return {completion_locks[h % num_locks], std::defer_lock}; | ||
| } | ||
|
|
||
| std::vector<std::string> Objecter::get_tracked_keys() const noexcept |
There was a problem hiding this comment.
This function is used to decide what config values to call handle_conf_change for. It's missing "rados_replica_read_policy", so when we set the value, it won't call through to the function until one of these four items gets set.
There was a problem hiding this comment.
This clean-up sounds like a follow-up.
There was a problem hiding this comment.
Following on from this comment: https://github.com/ceph/ceph/pull/70707/changes#r3712364496
If we add the rados_replica_read_policy into the tracked_keys, we can make use of the changed.count(...) that all other items in here use and only update when we actually modify the read_policy, instead of updating on every config update.
…_flags Objecter reacts to changes to rados_replica_read_policy by setting extra_flags to add either CEPH_OSD_FLAG_LOCALIZE_READS or CEPH_OSD_FLAG_BALANCE_READS to all read requests. It should also deal with changing the policy back to default by clearing extra_flags. Fixes: https://tracker.ceph.com/issues/77097 Signed-off-by: Bill Scales <[email protected]>
Objecter should correctly register to track changes to the rados_replica_read_policy, when notified of a conf change it should only re-evaluate this conf setting if it has changed. Signed-off-by: Bill Scales <[email protected]> Co-authored-by: Jon Bailey <[email protected]>
|
Pushed 2nd commit addressing suggested improvements from Jon |
| extra_read_flags = CEPH_OSD_FLAG_LOCALIZE_READS; | ||
| } else if (read_policy == "balance") { | ||
| extra_read_flags = CEPH_OSD_FLAG_BALANCE_READS; | ||
| if (changed.count("rados_replica_read_policy")) { |
JonBailey1993
left a comment
There was a problem hiding this comment.
Thanks for the changes Bill, LGTM
|
This PR has been added to wip-bharath8-testing-20260813.003211-main. |
Objecter reacts to changes to rados_replica_read_policy by setting extra_flags to add either CEPH_OSD_FLAG_LOCALIZE_READS or CEPH_OSD_FLAG_BALANCE_READS to all read requests. It should also deal with changing the policy back to default by clearing extra_flags.
Fixes: https://tracker.ceph.com/issues/77097
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 test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.