Project

General

Profile

Bug #21843

mds: preserve order of requests during recovery of multimds cluster

Added by Zheng Yan over 1 year ago. Updated 12 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
10/19/2017
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:

Description

there are several cases that requests get processed in wrong order

1)
touch a/b/f (handled by mds.1, early reply)
mkdir a/.snap/s1 (handle mds.0)

we should delay taking xlock on snaplock

if mds.1 restarts, the replaying the create request may happen after the mksnap request

2)
rm -f a/b/f (handled by mds.1, early reply)
lookup a/b/f (handled by mds.0, lookup is handled by non-auth mds)

we should delay taking rdlock on replica object

if mds.1 restarts, mds.0 may handle the lookup before mds.1 replays the unlink request

3)
rm -f a/b/f (handled by mds.1 early reply)
rmdir a/b (handled by mds.0)

dirfrag a/b/ is subtree. if mds.1 restart, mds.0 may check if a/b is empty before mds.1 replay the unlink request

we should delay take rdlock on scatterlock


Related issues

Duplicated by fs - Bug #22374: luminous: mds: SimpleLock::num_rdlock overloaded Duplicate 12/12/2017
Copied to fs - Backport #21947: luminous: mds: preserve order of requests during recovery of multimds cluster Resolved

History

#1 Updated by Zheng Yan over 1 year ago

  • Status changed from New to Need Review

#2 Updated by Patrick Donnelly about 1 year ago

  • Subject changed from preserve order of requests during recovery of multimds cluster to mds: preserve order of requests during recovery of multimds cluster
  • Status changed from Need Review to Pending Backport
  • Source set to Development
  • Backport set to luminous
  • Component(FS) MDS added

#3 Updated by Nathan Cutler about 1 year ago

  • Copied to Backport #21947: luminous: mds: preserve order of requests during recovery of multimds cluster added

#4 Updated by Nathan Cutler about 1 year ago

  • Duplicated by Bug #22374: luminous: mds: SimpleLock::num_rdlock overloaded added

#5 Updated by Patrick Donnelly 12 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF