Skip to content

Commit

Permalink
Merge remote-tracking branch 'ups/master' into jxiong/variable_in_loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jxiong committed Nov 6, 2024
2 parents 046c899 + aa4b2c7 commit d72d8d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/tests/ftest/container/multiple_delete.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
(C) Copyright 2020-2023 Intel Corporation.
(C) Copyright 2020-2024 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
"""
Expand All @@ -8,8 +8,6 @@
from general_utils import DaosTestError
from ior_test_base import IorTestBase

SCM_THRESHOLD = 400000


class MultipleContainerDelete(IorTestBase):
"""Test class Description:
Expand Down Expand Up @@ -77,13 +75,14 @@ def test_multiple_container_delete(self):
# since 50 is not divisible by 8, some data would remain in the disk right after
# the 50th iteration. If we wait for several seconds, that remaining data will be
# deleted (and we have 198KB left as mentioned above).
scm_threshold = self.params.get("scm_threshold", "/run/*")
for _ in range(5):
final_scm_fs, _ = self.get_pool_space()
scm_diff = initial_scm_fs - final_scm_fs
if scm_diff <= SCM_THRESHOLD:
if scm_diff <= scm_threshold:
msg = ("SCM space was recovered. Initial = {}; Final = {}; "
"Threshold = {}; (Unit is in byte)").format(
initial_scm_fs, final_scm_fs, SCM_THRESHOLD)
initial_scm_fs, final_scm_fs, scm_threshold)
self.log.info(msg)
scm_recovered = True
break
Expand All @@ -92,7 +91,7 @@ def test_multiple_container_delete(self):
if not scm_recovered:
msg = ("SCM space wasn't recovered! Initial = {}, Final = {}, "
"Threshold = {}; (Unit is in byte.)".format(
initial_scm_fs, final_scm_fs, SCM_THRESHOLD))
initial_scm_fs, final_scm_fs, scm_threshold))
self.fail(msg)

def get_pool_space(self):
Expand Down
2 changes: 2 additions & 0 deletions src/tests/ftest/container/multiple_delete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ ior:
block_size: 1G
dfs_oclass: EC_2P2G1
dfs_dir_oclass: EC_2P2G1

scm_threshold: 1500000
2 changes: 1 addition & 1 deletion utils/build.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ isal=v2.30.0
isal_crypto=v2.23.0
spdk=v22.01.2
ofi=v1.22.0
mercury=v2.4.0rc5
mercury=v2.4.0
protobufc=v1.3.3
ucx=v1.14.1

Expand Down

0 comments on commit d72d8d5

Please sign in to comment.