Navigation Menu

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

osd: filestore: fix race condition with split vs collection_move_rename and long object names #8136

Merged
merged 6 commits into from Mar 15, 2016

Conversation

athanatos
Copy link
Contributor

Fixes a bug in lfn_translate which can cause a split during collection_move_rename to orphan a dummy file confusing scrub and collection removal.

http://tracker.ceph.com/issues/14766

Tested: sjust@teuthology:/a/samuelj-2016-03-14_17:37:24-rados-wip-sam-testing-distro-basic-smithi

Signed-off-by: Samuel Just <sjust@redhat.com>
See comment for explanation.

Signed-off-by: Samuel Just <sjust@redhat.com>
If the file has an alt attr, there are two possible matching
ghobjects.  We want to make sure we choose the right one for
the short name we have.  If we don't, a split while there are
two objects linking to the same inode will result in one of
the links being orphaned in the source directory, resulting
in ceph#14766.

Signed-off-by: Samuel Just <sjust@redhat.com>
Signed-off-by: Samuel Just <sjust@redhat.com>
1/2 of objects will now have long names, and we'll shift the region
of the hash space where new objects are created every 1024 objects
created.

Signed-off-by: Samuel Just <sjust@redhat.com>
Signed-off-by: Samuel Just <sjust@redhat.com>
@athanatos athanatos added this to the jewel milestone Mar 15, 2016
@liewegas liewegas changed the title Wip split lfn osd: filestore: fix race condition with split vs collection_move_rename Mar 15, 2016
@liewegas liewegas changed the title osd: filestore: fix race condition with split vs collection_move_rename osd: filestore: fix race condition with split vs collection_move_rename and long object names Mar 15, 2016
liewegas added a commit that referenced this pull request Mar 15, 2016
osd: filestore: fix race condition with split vs collection_move_rename and long object names

Reviewed-by: Sage Weil <sage@redhat.com>
@liewegas liewegas merged commit 7fb0fe5 into ceph:master Mar 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants