Skip to content

osd: erasure-code-profile incremental rm before set#4066

Merged
athanatos merged 1 commit intohammerfrom
unknown repository
Mar 19, 2015
Merged

osd: erasure-code-profile incremental rm before set#4066
athanatos merged 1 commit intohammerfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Mar 18, 2015

It is possible for an incremental change to have both a rm and a set for
a given erasure code profile. It only happens when a rm is followed by a
set. When a set is followed by a rm, the rm will remove the pending set
in the incremental change.

The logic is the same for pool create and pool delete.

We must apply the incremental erasure-code-profile removal before the
creation otherwise rm and set in the same proposal will ignore the set.

This fix is minimal. A better change would be that erasure-code-profile
set checks if there is a pending removal and wait_for_finished_proposal
before creating.

http://tracker.ceph.com/issues/11144 Fixes: #11144

Signed-off-by: Loic Dachary ldachary@redhat.com

It is possible for an incremental change to have both a rm and a set for
a given erasure code profile. It only happens when a rm is followed by a
set. When a set is followed by a rm, the rm will remove the pending set
in the incremental change.

The logic is the same for pool create and pool delete.

We must apply the incremental erasure-code-profile removal before the
creation otherwise rm and set in the same proposal will ignore the set.

This fix is minimal. A better change would be that erasure-code-profile
set checks if there is a pending removal and wait_for_finished_proposal
before creating.

http://tracker.ceph.com/issues/11144 Fixes: #11144

Signed-off-by: Loic Dachary <ldachary@redhat.com>
@ghost ghost added bug-fix core labels Mar 18, 2015
@ghost ghost added this to the hammer milestone Mar 18, 2015
@loic-bot
Copy link

SUCCESS: the output of run-make-check.sh on centos-7 for aa3f948 is http://paste2.org/7mmjOjzK

:octocat: Sent from GH.

@ghost ghost added needs-qa and removed needs-qa labels Mar 18, 2015
@ghost ghost assigned liewegas Mar 18, 2015
@ghost
Copy link
Author

ghost commented Mar 18, 2015

I guess it needs review before it needs qa ;-)

@liewegas
Copy link
Member

This looks right to me, Reviewed-by:

athanatos pushed a commit that referenced this pull request Mar 19, 2015
osd: erasure-code-profile incremental rm before set

Reviewed-by: Sage Weil <sage@redhat.com>
@athanatos athanatos merged commit 3d22b88 into ceph:hammer Mar 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants