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

librbd: journal replay needs to support re-executing maintenance ops #7785

Merged
merged 5 commits into from Mar 2, 2016

Conversation

dillaman
Copy link

No description provided.

@jdurgin
Copy link
Member

jdurgin commented Mar 1, 2016

lgtm

@jdurgin
Copy link
Member

jdurgin commented Mar 1, 2016

Needs to fix ImageReplayer()'s use of journal: 8ca269f

Jason Dillaman added 5 commits March 1, 2016 07:38
Ignore errors that are to be expected when replaying
a maintenance op two or more times.

Fixes: ceph#14822
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
If the start event is flagged as committed before the op is
actually executed, librbd won't be able to replay the event
should a crash occur.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
If a client recorded a maintenance op to the journal but crashed
before writing the op finish event, the image will be in an
inconsistent state.  Therefore, once the end of the journal is
reached, attempt to apply all queued ops.

Fixes: ceph#14822
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
@dillaman
Copy link
Author

dillaman commented Mar 1, 2016

done

jdurgin added a commit that referenced this pull request Mar 2, 2016
librbd: journal replay needs to support re-executing maintenance ops

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
@jdurgin jdurgin merged commit 928c2e4 into ceph:master Mar 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants