@@ -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`.
619619def 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`.
677677def 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