Project

General

Profile

Bug #37368

mds: directories pinned keep being replicated back and forth between exporting mds and importing mds

Added by Xuehan Xu over 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Correctness/Safety
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
mimic,luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Recently, when developing the rstat propagation function, we found that when pinning some directory to a specific rank, there exists chances that the directory pinned keep being replicated back and forth between exporting mds and importing mds.

After a series of debugging, we believe this is due to the fact that exporting mds put the inode into "export_pin_queue" before the journaling of "setattr" request and, during the migration, "projected inode" is not replicated. So, when the migration happens before the completion of the "setattr" request's journaling, the importing mds would receive an inode whose export_pin is -1. So, when the importing mds does MDBalancer::tick, it would find that the inode just imported should be pinned to the rank that some of its parent belongs to, which is the exporting mds by a large chance. So there goes a export back from the importing mds to the exporting mds.


Related issues

Copied to CephFS - Backport #37606: luminous: mds: directories pinned keep being replicated back and forth between exporting mds and importing mds Resolved
Copied to CephFS - Backport #37607: mimic: mds: directories pinned keep being replicated back and forth between exporting mds and importing mds Resolved

History

#1 Updated by Patrick Donnelly over 5 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Xuehan Xu
  • Priority changed from Normal to High
  • Start date deleted (11/22/2018)
  • Backport set to mimic,luminous
  • Pull request ID set to 25220
  • ceph-qa-suite deleted (fs)

#2 Updated by Patrick Donnelly over 5 years ago

  • Status changed from Fix Under Review to Pending Backport

#3 Updated by Nathan Cutler over 5 years ago

  • Copied to Backport #37606: luminous: mds: directories pinned keep being replicated back and forth between exporting mds and importing mds added

#4 Updated by Nathan Cutler over 5 years ago

  • Copied to Backport #37607: mimic: mds: directories pinned keep being replicated back and forth between exporting mds and importing mds added

#5 Updated by Patrick Donnelly over 5 years ago

Not sure why I marked this Pending Backport but I've now merged the PR into master.

#6 Updated by Patrick Donnelly about 5 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF