mirror of
https://github.com/ceph/ceph
synced 2024-12-26 21:43:10 +00:00
qa: add max_mds thrash test
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
parent
1dc5b62557
commit
dde9ee1628
@ -134,6 +134,18 @@ class TestClusterResize(CephFSTestCase):
|
||||
finally:
|
||||
log.info("status = {0}".format(status))
|
||||
|
||||
def test_thrash(self):
|
||||
"""
|
||||
Test that thrashing max_mds does not fail.
|
||||
"""
|
||||
|
||||
max_mds = 2
|
||||
for i in range(0, 100):
|
||||
self.fs.set_max_mds(max_mds)
|
||||
max_mds = (max_mds+1)%3+1
|
||||
|
||||
self.fs.wait_for_daemons(timeout=90)
|
||||
|
||||
class TestFailover(CephFSTestCase):
|
||||
CLIENTS_REQUIRED = 1
|
||||
MDSS_REQUIRED = 2
|
||||
|
Loading…
Reference in New Issue
Block a user