# Shut down rank 1
self.fs.set_max_mds(1)
- self.fs.deactivate(1)
# It shouldn't proceed past stopping because its still not allowed
# to purge
"--mds_max_purge_files 100")
# It should now proceed through shutdown
- self.wait_until_true(
- lambda: self._is_stopped(1),
- timeout=60
- )
+ self.fs.wait_for_daemons(timeout=120)
# ...and in the process purge all that data
self.await_data_pool_empty()
mds_id=rank_1_id)
# Shut down rank 1
- self.fs.mon_manager.raw_cluster_cmd_result('mds', 'set', "max_mds", "1")
- self.fs.mon_manager.raw_cluster_cmd_result('mds', 'deactivate', "1")
-
- # Wait til we get to a single active MDS mdsmap state
- self.wait_until_true(lambda: self._is_stopped(1), timeout=120)
+ self.fs.set_max_mds(1)
+ self.fs.wait_for_daemons(timeout=120)
# See that the stray counter on rank 0 has incremented
self.assertEqual(self.get_mdc_stat("strays_created", rank_0_id), 1)
in purging on the stray for the file.
"""
# Enable snapshots
- self.fs.mon_manager.raw_cluster_cmd("mds", "set", "allow_new_snaps", "true",
- "--yes-i-really-mean-it")
+ self.fs.set_allow_new_snaps(True)
# Create a dir with a file in it
size_mb = 8
That unlinking fails when the stray directory fragment becomes too large and that unlinking may continue once those strays are purged.
"""
- self.fs.set_allow_dirfrags(True)
-
LOW_LIMIT = 50
for mds in self.fs.get_daemon_names():
self.fs.mds_asok(["config", "set", "mds_bal_fragment_size_max", str(LOW_LIMIT)], mds)