@@ -3573,3 +3573,36 @@ def test_start_time_few_nodes(self):
3573
3573
show_backup2 = self .show_pb (backup_dir2 , 'node2' )[3 ]
3574
3574
self .assertEqual (show_backup1 ['id' ], show_backup2 ['id' ])
3575
3575
3576
+ def test_regress_issue_585 (self ):
3577
+ """https://.com/postgrespro/pg_probackup/issues/585"""
3578
+ node = self .make_simple_node (
3579
+ base_dir = os .path .join (self .module_name , self .fname , 'node' ),
3580
+ set_replication = True ,
3581
+ initdb_params = ['--data-checksums' ])
3582
+
3583
+ backup_dir = os .path .join (self .tmp_path , self .module_name , self .fname , 'backup' )
3584
+ self .init_pb (backup_dir )
3585
+ self .add_instance (backup_dir , 'node' , node )
3586
+ node .slow_start ()
3587
+
3588
+ # create couple of files that looks like db files
3589
+ with open (os .path .join (node .data_dir , 'pg_multixact/offsets/1000' ),'wb' ) as f :
3590
+ pass
3591
+ with open (os .path .join (node .data_dir , 'pg_multixact/members/1000' ),'wb' ) as f :
3592
+ pass
3593
+
3594
+ self .backup_node (
3595
+ backup_dir , 'node' , node , backup_type = 'full' ,
3596
+ options = ['--stream' ])
3597
+
3598
+ output = self .backup_node (
3599
+ backup_dir , 'node' , node , backup_type = 'delta' ,
3600
+ options = ['--stream' ],
3601
+ return_id = False ,
3602
+ )
3603
+ self .assertNotRegex (output , r'WARNING: [^\n]* was stored as .* but looks like' )
3604
+
3605
+ node .cleanup ()
3606
+
3607
+ output = self .restore_node (backup_dir , 'node' , node )
3608
+ self .assertNotRegex (output , r'WARNING: [^\n]* was stored as .* but looks like' )
0 commit comments