Skip to content
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

rgw: log refactoring for data sync #23843

Merged
merged 3 commits into from Sep 20, 2018
Merged

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented Aug 31, 2018

removes the RGWDataSyncDebugLogger, which duplicates most of the logging from the sync trace framework

for logging outside of sync tracing, this implements DoutPrefixProvider for both RGWBucketSyncStatusManager and RGWDataSyncStatusManager and replaces their ldout()s with ldpp_dout()

@cbodley
Copy link
Contributor Author

cbodley commented Sep 6, 2018

@vumrao
Copy link
Contributor

vumrao commented Sep 6, 2018

I have created the tracker for this - http://tracker.ceph.com/issues/35830

@smithfarm
Copy link
Contributor

@cbodley @vumrao Is this really needed for luminous, and if so, why?

@cbodley
Copy link
Contributor Author

cbodley commented Sep 7, 2018

@smithfarm not all of it, no. I think @vumrao is only interested in one piece, and i'll split that into a separate pr

@cbodley
Copy link
Contributor Author

cbodley commented Sep 7, 2018

i retargeted that tracker issue at #23981

if (ret < 0) {
ldout(sync_env->cct, 0) << "ERROR: a sync operation returned error" << dendl;
/* we have reported this error */
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo: remove this commit

and passes its pointer to RGWRemoteDataLog

Signed-off-by: Casey Bodley <cbodley@redhat.com>
and passes its pointer to RGWRemoteBucketLog

Signed-off-by: Casey Bodley <cbodley@redhat.com>
the majority of the debug output from this logger is duplicated by the
sync tracing output

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley
Copy link
Contributor Author

cbodley commented Sep 17, 2018

@alimaredia
Copy link
Contributor

@cbodley: The second test you just ran didn't pass test_bucket_index_log_trim. Is that related to the PR?

@cbodley
Copy link
Contributor Author

cbodley commented Sep 17, 2018

@alimaredia i don't think so, no. i see that failure once in a while, i guess there's a race in the test itself but haven't had time to dig into it

edit: i opened http://tracker.ceph.com/issues/36034 to track this one

@cbodley cbodley merged commit 21cb2b4 into ceph:master Sep 20, 2018
@cbodley cbodley deleted the wip-rgw-dpp-datasync branch September 20, 2018 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants