Skip to content

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

Merged
athanatos merged 1 commit into
hammerfrom
unknown repository
Mar 19, 2015
Merged

athanatos merged 1 commit into
hammerfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Mar 18, 2015

Copy link
Copy Markdown

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 [email protected]

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 <[email protected]>
@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
Copy Markdown

SUCCESS: the output of run-make-check.sh on centos-7 for aa3f948ee629385c57696de81b97671d4e17c7bc 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

ghost commented Mar 18, 2015

Copy link
Copy Markdown
Author

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

@liewegas

Copy link
Copy Markdown
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 <[email protected]>
@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