new kernel client proactively release caps. caps count can go below
mds_min_caps_per_client
Fixes: http://tracker.ceph.com/issues/38270
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit
8e81bd74c59259a06f587bb425d58bf2b2176341)
Conflicts:
qa/tasks/cephfs/test_client_limits.py
- mimic TestClientLimits does not have expected_caps method at all
recall_expected_value = int((1.0-mds_max_ratio_caps_per_client)*(open_files+2))
def expected_caps():
num_caps = self.get_session(mount_a_client_id)['num_caps']
- if num_caps < mds_min_caps_per_client:
- raise RuntimeError("client caps fell below min!")
- elif num_caps == mds_min_caps_per_client:
+ if num_caps <= mds_min_caps_per_client:
return True
elif recall_expected_value*.95 <= num_caps <= recall_expected_value*1.05:
return True