Project

General

Profile

Actions

Bug #43644

closed

mds: Empty directory check is done on the importer side (at import finish) during migration

Added by Sidharth Anupkrishnan over 4 years ago. Updated about 4 years ago.

Status:
Rejected
Priority:
Urgent
Category:
Performance/Resource Usage
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
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

In the current MDS code, the migration of empty directories is prohibited but it is actually exported during the migration process and a check on the importer side during import_finish() (https://github.com/ceph/ceph/blob/master/src/mds/Migrator.cc#L3175) determines whether the directory empty and if so exports it back to the original exporter.

Why is this check not done on the exporter side? We can avoid unnecessary round trips between the exporter and the importing mds.

Actions

Also available in: Atom PDF