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

rbd: cleanup - Proxied operations shouldn't result in error messages if replayed #9724

Merged
merged 1 commit into from Jul 24, 2016

Conversation

vumrao
Copy link
Contributor

@vumrao vumrao commented Jun 15, 2016

rbd: cleanup - Proxied operations shouldn't result
in error messages if replayed

Fixes: http://tracker.ceph.com/issues/16130

Signed-off-by: Vikhyat Umrao vumrao@redhat.com

@dillaman
Copy link

@vumrao We don't want to suppress all errors. We only want to suppress the errors that we know will occur if you execute the operation twice. For example, creating a snapshot twice will result in -EEXISTS, deleting a snapshot twice will result in -ENOENT, etc. You can look in src/librbd/Operations.cc at each op method. Where you see new C_InvokeAsyncRequest to kick-off the operation, there is an optional set of filtered error codes. Those are the errors we want to log suppress -- we still want to log them with ldout, though.

@vumrao
Copy link
Contributor Author

vumrao commented Jun 17, 2016

Thanks @dillaman ahh sorry I misunderstood it. Sure I will make changes and will send a new patch set.

@vumrao vumrao force-pushed the wip-vumrao-16130 branch 2 times, most recently from c0977ce to c50efb4 Compare June 27, 2016 18:19
@@ -100,8 +103,11 @@ int RenameRequest<I>::filter_state_return_code(int r) {

if (m_state == STATE_REMOVE_SOURCE_HEADER && r < 0) {
if (r != -ENOENT) {
lderr(cct) << "warning: couldn't remove old source object ("
<< m_source_oid << ")" << dendl;
if (r == -EEXIST)

Choose a reason for hiding this comment

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

Minor: unneeded since you won't receive -EEXISTS when removing an object.

@vumrao
Copy link
Contributor Author

vumrao commented Jun 29, 2016

@dillaman thank you, sent a new patch after adding all your inputs.

in error messages if replayed

Fixes: http://tracker.ceph.com/issues/16130

Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
@vumrao
Copy link
Contributor Author

vumrao commented Jul 25, 2016

Thank you Jason!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants