@@ -176,18 +176,15 @@ def test_merge_compressed_backups_1(self):
176176 node = self .make_simple_node (
177177 base_dir = os .path .join (module_name , fname , 'node' ),
178178 set_replication = True , initdb_params = ["--data-checksums" ],
179- pg_options = {
180- 'autovacuum' : 'off'
181- }
182- )
179+ pg_options = {'autovacuum' : 'off' })
183180
184181 self .init_pb (backup_dir )
185182 self .add_instance (backup_dir , "node" , node )
186183 self .set_archiving (backup_dir , "node" , node )
187184 node .slow_start ()
188185
189186 # Fill with data
190- node .pgbench_init (scale = 5 )
187+ node .pgbench_init (scale = 10 )
191188
192189 # Do compressed FULL backup
193190 self .backup_node (backup_dir , "node" , node , options = ['--compress' , '--stream' ])
@@ -197,7 +194,7 @@ def test_merge_compressed_backups_1(self):
197194 self .assertEqual (show_backup ["backup-mode" ], "FULL" )
198195
199196 # Change data
200- pgbench = node .pgbench (options = ['-T' , '20 ' , '-c' , '2 ' , '--no-vacuum' ])
197+ pgbench = node .pgbench (options = ['-T' , '10 ' , '-c' , '1 ' , '--no-vacuum' ])
201198 pgbench .wait ()
202199
203200 # Do compressed DELTA backup
@@ -206,7 +203,7 @@ def test_merge_compressed_backups_1(self):
206203 backup_type = "delta" , options = ['--compress' , '--stream' ])
207204
208205 # Change data
209- pgbench = node .pgbench (options = ['-T' , '20 ' , '-c' , '2 ' , '--no-vacuum' ])
206+ pgbench = node .pgbench (options = ['-T' , '10 ' , '-c' , '1 ' , '--no-vacuum' ])
210207 pgbench .wait ()
211208
212209 # Do compressed PAGE backup
@@ -1479,10 +1476,12 @@ def test_crash_after_opening_backup_control_1(self):
14791476
14801477 self .del_test_dir (module_name , fname )
14811478
1479+ @unittest .skip ("skip" )
14821480 def test_crash_after_opening_backup_control_2 (self ):
14831481 """
14841482 check that crashing after opening backup_content.control
14851483 for writing will not result in losing metadata about backup files
1484+ TODO: rewrite
14861485 """
14871486 fname = self .id ().split ('.' )[3 ]
14881487 backup_dir = os .path .join (self .tmp_path , module_name , fname , 'backup' )
@@ -1532,7 +1531,7 @@ def test_crash_after_opening_backup_control_2(self):
15321531 gdb .run_until_break ()
15331532
15341533 gdb .set_breakpoint ('sprintf' )
1535- gdb .continue_execution_until_break (20 )
1534+ gdb .continue_execution_until_break (1 )
15361535
15371536 gdb ._execute ('signal SIGKILL' )
15381537
@@ -1569,10 +1568,12 @@ def test_crash_after_opening_backup_control_2(self):
15691568
15701569 self .del_test_dir (module_name , fname )
15711570
1571+ @unittest .skip ("skip" )
15721572 def test_losing_file_after_failed_merge (self ):
15731573 """
15741574 check that crashing after opening backup_content.control
15751575 for writing will not result in losing metadata about backup files
1576+ TODO: rewrite
15761577 """
15771578 fname = self .id ().split ('.' )[3 ]
15781579 backup_dir = os .path .join (self .tmp_path , module_name , fname , 'backup' )
0 commit comments