Actions
Cleanup #66074
opentest_quiesce.py: Improve the quiesce vs fragmentation test
% Done:
0%
Backport:
squid
Reviewed:
Affected Versions:
Component(FS):
quiesce
Labels (FS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:
Description
We need to check that the fragmentation/merging is occurring between the quiesce calls.
One of the suggested approaches is to use the corresponding asok command to precisely control when the quiescing begins:
def test_quiesce_parent_frag(self):
"""
"""
self._configure_subvolume()
self.mount_a.run_shell_payload("for i in `seq 1 100`; do mkdir -p foo/$i; done")
path_parent = self.mount_a.cephfs_mntpt + "/foo"
path_q1 = path_parent + "/1"
J = self.fs.rank_tell("quiesce", "path", path_q1)
log.debug(f"{J}")
reqid = self._reqid_tostr(J['op']['reqid'])
self._wait_for_quiesce_complete(reqid)
self.fs.rank_tell("dirfrag", "split", path_parent, "0/0", "1")
path_q2 = path_parent + "/2"
J = self.fs.rank_tell("quiesce", "path", path_q2)
log.debug(f"{J}")
reqid = self._reqid_tostr(J['op']['reqid'])
self._wait_for_quiesce_complete(reqid) # will fail without fix
# TODO: verify dir is fragmented
Updated by Leonid Usov almost 2 years ago
- Related to Bug #65716: mds: dir merge can't progress due to fragment nested pins, blocking the quiesce_path and causing a quiesce timeout added
Updated by Venky Shankar almost 2 years ago
- Category set to Testing
- Assignee set to Dhairya Parmar
- Target version set to v20.0.0
- Backport set to squid
Actions