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

jewel: mds: Duplicate damage table entries #11412

Merged
1 commit merged into from Oct 17, 2016
Merged

jewel: mds: Duplicate damage table entries #11412

1 commit merged into from Oct 17, 2016

Conversation

ghost
Copy link

@ghost ghost commented Oct 11, 2016

There was an implicit assumption in the code that callers
wouldn't hit the notify_*damaged paths twice because they would
have checked is_*_damaged paths first.

However, that's not really true in all cases, e.g. scrub
code isn't required to respect existing damage entries
when trying to load a CDir.

Simply fix this by having the DamageTable notify* functions
check the key they're inserting doesn't already exist.

Fixes: http://tracker.ceph.com/issues/17173
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit c9cfaef)
@ghost ghost self-assigned this Oct 11, 2016
@ghost ghost added this to the jewel milestone Oct 11, 2016
@ghost ghost added bug-fix core cephfs Ceph File System and removed core labels Oct 11, 2016
ghost pushed a commit that referenced this pull request Oct 13, 2016
Reviewed-by: Loic Dachary <ldachary@redhat.com>
@ghost
Copy link
Author

ghost commented Oct 14, 2016

@jcsp does this backport look good to merge ? It passed the fs suite http://tracker.ceph.com/issues/17487#note-13 (except for one known bug that is, I believe, unrelated)

@ghost ghost assigned jcsp Oct 14, 2016
ghost pushed a commit that referenced this pull request Oct 17, 2016
Reviewed-by: Loic Dachary <ldachary@redhat.com>
@jcsp
Copy link
Contributor

jcsp commented Oct 17, 2016

👍

@ghost ghost merged commit c7b7f2e into ceph:jewel Oct 17, 2016
@theanalyst theanalyst changed the title jewel: Duplicate damage table entries "jewel: mds: Duplicate damage table entries" Nov 17, 2016
@theanalyst theanalyst changed the title "jewel: mds: Duplicate damage table entries" jewel: mds: Duplicate damage table entries Nov 17, 2016
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix cephfs Ceph File System
Projects
None yet
1 participant