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

mds: properly commit new dirfrag before splitting it #12125

Merged
merged 1 commit into from Dec 6, 2016

Conversation

ukernel
Copy link
Contributor

@ukernel ukernel commented Nov 22, 2016

CDir::is_new() check is invalid before the new directory gets
journaled. Besides, it's not good to commit a directory before
it gets journaled.

See commit 07ccc4e for more information.

Fixes: http://tracker.ceph.com/issues/17990
Signed-off-by: Yan, Zheng zyan@redhat.com

Copy link
Member

@gregsfortytwo gregsfortytwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The functional bits LGTM, just the one comment about debug level.

@@ -11520,6 +11525,9 @@ void MDCache::force_readonly()

void MDCache::show_subtrees(int dbl)
{
if (g_conf->mds_thrash_exports)
dbl += 5;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this bit supposed to be here? If you want it in-tree please make it a new commit.

CDir::is_new() check is invalid before the new directory gets
journaled. Besides, it's not good to commit a directory before
it gets journaled.

See commit 07ccc4e for more information.

Fixes: http://tracker.ceph.com/issues/17990
Signed-off-by: Yan, Zheng <zyan@redhat.com>
@ukernel
Copy link
Contributor Author

ukernel commented Nov 23, 2016

updated

@gregsfortytwo
Copy link
Member

@jcsp, can we expect an integration branch run to be consistent about showing this fixes the issue?

@jcsp
Copy link
Contributor

jcsp commented Nov 23, 2016

@gregsfortytwo yes, it's happened several times in the last couple of runs.

@jcsp jcsp merged commit 6c5958c into ceph:master Dec 6, 2016
@ukernel ukernel deleted the wip-17990 branch January 12, 2017 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants