Repository navigation
rgw: flush bucket logs to old target on config change - #71236
Conversation
|
I'd like to convert the logging to use dout_fmt() while I'm here, but as that's not really related to fixing the bug I'll leave it be for now. |
|
jenkins test make check arm64 |
d8e9cda to
3f5c4e3
Compare
|
When the logging mode is Standard, the conf change still leaves a dangling shadow object containing the REST.PUT.LOGGING entry for the conf change. On checking the rados pool entries post the conf change: 69e8dbf8-1026-4755-b847-0b6e2bd59fbc.4177.2__shadow_test-log-1/2026-09-07-05-00-57-0000000001JN98OV0 is a dangling shadow object. |
|
@chardan , does the pull request id for https://tracker.ceph.com/issues/78902 need to be set to this PR? |
This is an existing issue unrelated to this PR. Opened https://tracker.ceph.com/issues/80362 to track this. |
|
| } | ||
| if (const auto ret = driver->load_bucket(this, old_target_bucket_id, | ||
| &old_target_bucket, y); | ||
| ret < 0) { |
There was a problem hiding this comment.
we should be silently ignoring this error only in case of ENOENT
all other errors should fail the op
There was a problem hiding this comment.
Ok. Although note that by this point the new config has actually been written, so it seems like returning a failure might be some "false advertising"?
There was a problem hiding this comment.
you are right, and i guess that a retry won't help at this point.
the next time since we will have old_conf == new_conf.
so we won't try to re-flush the logs.
i wonder if there is any reason to return an error in any of the other places. lines 322, 352
When a bucket logging configuration changed target buckets, RGW rolled over the pending log object through the newly configured target bucket while using the old configuration. Pending records for the old target could be left behind, and the response could name an object that was not written to the new target. See: https://tracker.ceph.com/issues/78902 And: https://tracker.ceph.com/issues/79049 Assisted-by: Codex:GPT-5 Signed-off-by: Jesse F. Williamson <[email protected]>
3f5c4e3 to
7293d6b
Compare
so, any failure in flushing after the conf was modified should be treated as a warning (for possible data loss) Signed-off-by: Yuval Lifshitz <[email protected]>
|
@yuvalif Thanks for the addition! Please be sure to include any new test or test changes to check the expected behavior. Appreciated! |
not sure how to reliably test it. i can try a racing conf change with bucket deletion, but this would be a flaky test |
|
Yeah, we don't need more of those... |
|
This PR has been added to main integration testing by anuchaithra started 2026-09-22-04:11. |
@chardan , build creation failed, could you please check : https://shaman.ceph.com/builds/ceph/wip-anuchaithra-testing-20260922.041044-main/ |
looks like compilation error related to some other PR you have there: there is no config option added here. |
pr testing completed and approved by @ivancich , more details in https://tracker.ceph.com/issues/80713. |
When a bucket logging configuration changed target buckets, RGW rolled over the pending log object through the newly configured target bucket while using the old configuration. Pending records for the old target could be left behind, and the response could name an object that was not written to the new target.
See: https://tracker.ceph.com/issues/78902
And: https://tracker.ceph.com/issues/79049
Assisted-by: Codex:GPT-5
Signed-off-by: Jesse F. Williamson [email protected]
Checklist