Project

General

Profile

Actions

Bug #51857

closed

client: make sure only to update dir dist from auth mds

Added by yantao xue almost 3 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

100%

Source:
Community (dev)
Tags:
backport_processed
Backport:
pacific,octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
fs
Component(FS):
Client
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

In mds/Server::set_trace_dist, if (dir->is_auth() && !forward_all_requests_to_auth) dir->get_dist_spec(ds.dist, whoami);
On client side, in Client::update_dir_dist, it updates the replica info from the ds.dist, regardless of whether the reply comes from the replica or the auth mds. Because the replica mds dose not spec the ds.dist, so client will clear the replica info what have been set by the auth mds when received reply from the replica mds.


Related issues 2 (0 open2 closed)

Copied to CephFS - Backport #51976: octopus: client: make sure only to update dir dist from auth mdsRejectedActions
Copied to CephFS - Backport #51977: pacific: client: make sure only to update dir dist from auth mdsResolvedPatrick DonnellyActions
Actions

Also available in: Atom PDF