Repository navigation
Conversation
mrgw.sh returns before radosgw is ready, so a request sent right after a gateway restart may fail. Wait for it, like teuthology's Gateway.start(). Signed-off-by: Oguzhan Ozmen <[email protected]>
A PUT or DELETE that doesn't complete, e.g. after a gateway crash or a request timeout with rados_osd_op_timeout, leaves a pending op in the bucket index. A later bucket listing repairs it with a bilog entry but no datalog entry, so the other zone never syncs that shard until the next write to it. Autotrim then can't trim past the entry. The test reproduces the issue using rados_osd_op_timeout and slowing down primary's OSDs. Related-to: https://tracker.ceph.com/issues/63235 Tests: https://tracker.ceph.com/issues/83101 Signed-off-by: Oguzhan Ozmen <[email protected]>
A bilog entry written without a datalog entry isn't synced by the peer zone until the next write to the same shard. One way to be in such a state is when bucket listing's repair of a pending op which left after a gateway crash or a timed-out request (when rados_osd_op_timeout enabled). On an idle shard that next write never comes, so autotrim can't trim past the entry. Autotrim already reads each peer's sync position. If the oldest entry a peer hasn't synced on a shard is older than the new rgw_sync_log_trim_heal_age (1 day by default, 0 disables it), autotrim adds a datalog entry for that shard, and the peer can now sync it. An entry's timestamp is its object's mtime, not when it was logged, so a recent delete of an old object may be healed sooner; that only costs the peer an extra sync of the shard. Related-to: https://tracker.ceph.com/issues/63235 Fixes: https://tracker.ceph.com/issues/83101 Signed-off-by: Oguzhan Ozmen <[email protected]>
Config Diff Tool Output+ added: rgw_sync_log_trim_heal_age (rgw.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
|
/config check ok |
|
@smanjara / @adamemerson -> adding you in particular to the reviewers list as you had worked on a similar issue at #54086 |
thanks @BBoozmen! the complexity in that old PR was because we had to consider batched bilog entries before doing a datalog push, for which we have better support now. I just pushed a commit that I was working on, to add datalog updates after dir suggest entries in my bilog async PR #72221. |
@smanjara - That's great, thank you! I believe I had added some comments there before (unrelated to this one). Let me take a look again. |
yes those are real concerns! thanks for pointing them out. i'll address them soon :) |
Hi @smanjara - Just posted my reply at #72221 (review) As I said there, ran this PR's test against it (without the autotrim heal). It passes for both InIndex and FIFO bilogs, so your change does fix the listing-repair source of the missing datalog entry on main! I see these two PRs as complementary rather than either/or, though:
Since the heal only acts on a shard whose oldest unsynced entry is older than rgw_sync_log_trim_heal_age (1 day by default, 0 disables it), with #72221 in place it should rarely fire on main. It just stays there as a safety net. What do you think? |
thanks for testing!
I'm just not sure if bilog trim is the place to add datalog for these bilog entries. I am assuming that the buckets that are not very active are the ones that need the trigger? but autotrim might not even schedule those cold buckets for trimming over long periods. is that acceptable? |
Fixes: https://tracker.ceph.com/issues/83101
Added
/config check ok-> this is an advanced option and none of the other related configs (rgw_sync_log_*) has a confval entry in doc/radosgw/config-ref.rstTesting
without fix the new test fails consistently
Both tests fail at the checkpoint after autotrim; the secondary stays behind on the repaired shards:
secondary behind on 6 of 11 shards, e.g. shard 0:
00000000010.23.6vs00000000011.24.9with the fix
Autotrim heals exactly the stuck shards and both tests pass:
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.