mirror of
https://github.com/ceph/ceph
synced 2024-12-15 07:56:12 +00:00
qa: timeout thrasher if fs does not stabilize
After 5 minutes of waiting, it's reasonable to stop as the cluster is probably stuck. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
parent
8f3e745344
commit
638bccb2bb
@ -187,7 +187,9 @@ class MDSThrasher(Greenlet):
|
||||
self.log('mds cluster has {count} alive and active, now stable!'.format(count = count))
|
||||
return status, None
|
||||
itercount = itercount + 1
|
||||
if itercount > 10:
|
||||
if itercount > 300/2: # 5 minutes
|
||||
raise RuntimeError('timeout waiting for cluster to stabilize')
|
||||
elif itercount > 10:
|
||||
self.log('mds map: {status}'.format(status=self.fs.status()))
|
||||
time.sleep(2)
|
||||
status = self.fs.status()
|
||||
|
Loading…
Reference in New Issue
Block a user