Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mimic: cephfs: kcephfs TestClientLimits.test_client_pin fails with client caps fell below min #29211

Merged
merged 1 commit into from Jul 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions qa/tasks/cephfs/test_client_limits.py
Expand Up @@ -87,9 +87,7 @@ def _test_client_pin(self, use_subdir, open_files):
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
Expand Down