@@ -176,18 +176,15 @@ def test_merge_compressed_backups_1(self):
176
176
node = self .make_simple_node (
177
177
base_dir = os .path .join (module_name , fname , 'node' ),
178
178
set_replication = True , initdb_params = ["--data-checksums" ],
179
- pg_options = {
180
- 'autovacuum' : 'off'
181
- }
182
- )
179
+ pg_options = {'autovacuum' : 'off' })
183
180
184
181
self .init_pb (backup_dir )
185
182
self .add_instance (backup_dir , "node" , node )
186
183
self .set_archiving (backup_dir , "node" , node )
187
184
node .slow_start ()
188
185
189
186
# Fill with data
190
- node .pgbench_init (scale = 5 )
187
+ node .pgbench_init (scale = 10 )
191
188
192
189
# Do compressed FULL backup
193
190
self .backup_node (backup_dir , "node" , node , options = ['--compress' , '--stream' ])
@@ -197,7 +194,7 @@ def test_merge_compressed_backups_1(self):
197
194
self .assertEqual (show_backup ["backup-mode" ], "FULL" )
198
195
199
196
# Change data
200
- pgbench = node .pgbench (options = ['-T' , '20 ' , '-c' , '2 ' , '--no-vacuum' ])
197
+ pgbench = node .pgbench (options = ['-T' , '10 ' , '-c' , '1 ' , '--no-vacuum' ])
201
198
pgbench .wait ()
202
199
203
200
# Do compressed DELTA backup
@@ -206,7 +203,7 @@ def test_merge_compressed_backups_1(self):
206
203
backup_type = "delta" , options = ['--compress' , '--stream' ])
207
204
208
205
# Change data
209
- pgbench = node .pgbench (options = ['-T' , '20 ' , '-c' , '2 ' , '--no-vacuum' ])
206
+ pgbench = node .pgbench (options = ['-T' , '10 ' , '-c' , '1 ' , '--no-vacuum' ])
210
207
pgbench .wait ()
211
208
212
209
# Do compressed PAGE backup
@@ -1479,10 +1476,12 @@ def test_crash_after_opening_backup_control_1(self):
1479
1476
1480
1477
self .del_test_dir (module_name , fname )
1481
1478
1479
+ @unittest .skip ("skip" )
1482
1480
def test_crash_after_opening_backup_control_2 (self ):
1483
1481
"""
1484
1482
check that crashing after opening backup_content.control
1485
1483
for writing will not result in losing metadata about backup files
1484
+ TODO: rewrite
1486
1485
"""
1487
1486
fname = self .id ().split ('.' )[3 ]
1488
1487
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):
1532
1531
gdb .run_until_break ()
1533
1532
1534
1533
gdb .set_breakpoint ('sprintf' )
1535
- gdb .continue_execution_until_break (20 )
1534
+ gdb .continue_execution_until_break (1 )
1536
1535
1537
1536
gdb ._execute ('signal SIGKILL' )
1538
1537
@@ -1569,10 +1568,12 @@ def test_crash_after_opening_backup_control_2(self):
1569
1568
1570
1569
self .del_test_dir (module_name , fname )
1571
1570
1571
+ @unittest .skip ("skip" )
1572
1572
def test_losing_file_after_failed_merge (self ):
1573
1573
"""
1574
1574
check that crashing after opening backup_content.control
1575
1575
for writing will not result in losing metadata about backup files
1576
+ TODO: rewrite
1576
1577
"""
1577
1578
fname = self .id ().split ('.' )[3 ]
1578
1579
backup_dir = os .path .join (self .tmp_path , module_name , fname , 'backup' )
0 commit comments