Skip to content

Commit

Permalink
qa: add test_mdsdir_scrub_backtrace
Browse files Browse the repository at this point in the history
Fixes: https://tracker.ceph.com/issues/58030
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
  • Loading branch information
neesingh-rh committed Nov 22, 2022
1 parent ab2b23b commit 014582b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions qa/tasks/cephfs/test_scrub.py
Expand Up @@ -176,3 +176,12 @@ def test_scrub_backtrace(self):

def test_scrub_dup_inode(self):
self._scrub(DupInodeWorkload(self, self.fs, self.mount_a))

def test_mdsdir_scrub_backtrace(self):
damage_count = self._get_damage_count()
self.assertNotIn("MDS_DAMAGE", self.mds_cluster.mon_manager.get_mon_health()['checks'])

out_json = self.fs.run_scrub(["start", "~mdsdir", "recursive"])
self.assertEqual(self.fs.wait_until_scrub_complete(tag=out_json["scrub_tag"]), True)
self.assertEqual(self._get_damage_count(), damage_count)
self.assertNotIn("MDS_DAMAGE", self.mds_cluster.mon_manager.get_mon_health()['checks'])

0 comments on commit 014582b

Please sign in to comment.