Actions
Bug #51857
closedclient: make sure only to update dir dist from auth mds
% 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.
Actions