-
Notifications
You must be signed in to change notification settings - Fork 6k
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
object errors found in be_select_auth_object() aren't logged the same #23376
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm in general. just some nit regarding to the error message format.
src/osd/PGBackend.cc
Outdated
<< dendl; | ||
} | ||
if (error) | ||
errorstream << pgid.pgid << " shard " << l << ": soid " << obj |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, probably we can be more consistent in the error message format? if we have an object level scrub error:
errorstream << pgid.pgid << " soid " << *k
<< ": failed to pick suitable object info\n";
and a shard error looks like
<pgid> shard 1: soid 3:ce3f1d6a:::ROBJ1:head size 9 != size 7 from auth oi
in which, the detailed error is started with a ":". and the object id is placed right next to pgid. i think it makes more sense in this context, as it'd easier to identify the error in the line . and if we put the object id next to , will it help the user to sort the output?
dzafman-2018-08-05_13:25:22-rados-wip-zafman-testing2-distro-basic-smithi FIXED test runs |
@tchaikov I adjusted scrub error messages to be consist. I wasn't sure what you meant, but I always precede the error text with a colon, the shard and soid before it. |
Re-running a rados suite. |
Testing passed |
retest this please |
Fixes: http://tracker.ceph.com/issues/25108 Signed-off-by: David Zafman <dzafman@redhat.com>
Signed-off-by: David Zafman <dzafman@redhat.com>
Signed-off-by: David Zafman <dzafman@redhat.com>
Signed-off-by: David Zafman <dzafman@redhat.com>
Signed-off-by: David Zafman <dzafman@redhat.com>
Signed-off-by: David Zafman <dzafman@redhat.com>
No description provided.