forked from TrueCloudLab/frostfs-testcases
Rename variable for GC waiting
We need just an aggregate variable that allows to wait until GC pass occurs on a storage node, rather than a variable for specific shard. Also, we need to account for a time that GC session itself takes. Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
This commit is contained in:
parent
b270f39387
commit
0ca45d1ba8
3 changed files with 7 additions and 7 deletions
|
@ -4,7 +4,7 @@ import uuid
|
|||
|
||||
import allure
|
||||
|
||||
from common import ASSETS_DIR, SIMPLE_OBJ_SIZE, SHARD_0_GC_SLEEP
|
||||
from common import ASSETS_DIR, SIMPLE_OBJ_SIZE, STORAGE_GC_TIME
|
||||
|
||||
|
||||
def create_file_with_content(file_path: str = None, content: str = None) -> str:
|
||||
|
@ -90,6 +90,6 @@ def placement_policy_from_container(container_info: str) -> str:
|
|||
|
||||
def wait_for_gc_pass_on_storage_nodes() -> None:
|
||||
# We add 15 seconds to allow some time for GC process itself
|
||||
wait_time = robot_time_to_int(SHARD_0_GC_SLEEP) + 15
|
||||
wait_time = robot_time_to_int(STORAGE_GC_TIME)
|
||||
with allure.step(f'Wait {wait_time}s until GC completes on storage nodes'):
|
||||
time.sleep(wait_time)
|
||||
|
|
|
@ -79,9 +79,9 @@ def return_nodes(alive_node: str = None):
|
|||
with allure.step(f'Start node {node}'):
|
||||
helper.start_node(node)
|
||||
|
||||
# Wait for node to receive notifications from morph-chain
|
||||
# We need to wait for node to establish notifications from morph-chain
|
||||
# Otherwise it will hang up when we will try to set status
|
||||
sleep(robot_time_to_int(MAINNET_BLOCK_TIME))
|
||||
tick_epoch()
|
||||
|
||||
with allure.step(f'Move node {node} to online state'):
|
||||
node_set_status(node, status='online', retries=2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue