Skip to content

Commit f3f97e1

Browse files
committed
Fix integration test test_cancel_backup.
1 parent 4169897 commit f3f97e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/integration/test_backup_restore_on_cluster/test_cancel_backup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -617,13 +617,13 @@ def test_error_leaves_no_trash():
617617

618618
# A backup must be stopped if Zookeeper is disconnected longer than `failure_after_host_disconnected_for_seconds`.
619619
def test_long_disconnection_stops_backup():
620+
create_and_fill_table(random_node(), num_parts=100)
621+
620622
with NoTrashChecker() as no_trash_checker, ConfigManager() as config_manager:
621623
# Config "faster_zk_disconnect_detect.xml" is used in this test to decrease number of retries when reconnecting to ZooKeeper.
622624
# Without this config this test can take several minutes (instead of seconds) to run.
623625
config_manager.add_main_config(nodes, "configs/faster_zk_disconnect_detect.xml")
624626

625-
create_and_fill_table(random_node(), num_parts=100)
626-
627627
initiator = random_node()
628628
print(f"Using {get_node_name(initiator)} as initiator")
629629

@@ -675,6 +675,8 @@ def test_long_disconnection_stops_backup():
675675

676676
# A backup must NOT be stopped if Zookeeper is disconnected shorter than `failure_after_host_disconnected_for_seconds`.
677677
def test_short_disconnection_doesnt_stop_backup():
678+
create_and_fill_table(random_node())
679+
678680
with NoTrashChecker() as no_trash_checker, ConfigManager() as config_manager:
679681
use_faster_zk_disconnect_detect = random.choice([True, False])
680682
if use_faster_zk_disconnect_detect:
@@ -683,8 +685,6 @@ def test_short_disconnection_doesnt_stop_backup():
683685
nodes, "configs/faster_zk_disconnect_detect.xml"
684686
)
685687

686-
create_and_fill_table(random_node())
687-
688688
initiator = random_node()
689689
print(f"Using {get_node_name(initiator)} as initiator")
690690

0 commit comments

Comments
 (0)