@@ -759,7 +759,7 @@ def test_ptrack_stream(self):
759759 self .restore_node (
760760 backup_dir , 'node' , node ,
761761 backup_id = full_backup_id ,
762- options = ["-j" , "4" ]
762+ options = ["-j" , "4" , "--recovery-target-action=promote" ]
763763 ),
764764 '\n Unexpected Error Message: {0}\n CMD: {1}' .format (
765765 repr (self .output ), self .cmd )
@@ -778,7 +778,7 @@ def test_ptrack_stream(self):
778778 self .restore_node (
779779 backup_dir , 'node' , node ,
780780 backup_id = ptrack_backup_id ,
781- options = ["-j" , "4" ]
781+ options = ["-j" , "4" , "--recovery-target-action=promote" ]
782782 ),
783783 '\n Unexpected Error Message: {0}\n CMD: {1}' .format (
784784 repr (self .output ), self .cmd )
@@ -861,7 +861,9 @@ def test_ptrack_archive(self):
861861 self .restore_node (
862862 backup_dir , 'node' , node ,
863863 backup_id = full_backup_id ,
864- options = ["-j" , "4" , "--time={0}" .format (full_target_time )]
864+ options = [
865+ "-j" , "4" , "--recovery-target-action=promote" ,
866+ "--time={0}" .format (full_target_time )]
865867 ),
866868 '\n Unexpected Error Message: {0}\n CMD: {1}' .format (
867869 repr (self .output ), self .cmd )
@@ -880,7 +882,10 @@ def test_ptrack_archive(self):
880882 self .restore_node (
881883 backup_dir , 'node' , node ,
882884 backup_id = ptrack_backup_id ,
883- options = ["-j" , "4" , "--time={0}" .format (ptrack_target_time )]
885+ options = [
886+ "-j" , "4" ,
887+ "--time={0}" .format (ptrack_target_time ),
888+ "--recovery-target-action=promote" ]
884889 ),
885890 '\n Unexpected Error Message: {0}\n CMD: {1}' .format (
886891 repr (self .output ), self .cmd )
@@ -1320,7 +1325,8 @@ def test_alter_table_set_tablespace_ptrack(self):
13201325 "-T" , "{0}={1}" .format (
13211326 self .get_tblspace_path (node , 'somedata_new' ),
13221327 self .get_tblspace_path (node_restored , 'somedata_new' )
1323- )
1328+ ),
1329+ "--recovery-target-action=promote"
13241330 ]
13251331 )
13261332
@@ -1549,7 +1555,8 @@ def test_ptrack_alter_tablespace(self):
15491555 tblspc_path_new = self .get_tblspace_path (
15501556 restored_node , 'somedata_restored' )
15511557 self .restore_node (backup_dir , 'node' , restored_node , options = [
1552- "-j" , "4" , "-T" , "{0}={1}" .format (tblspc_path , tblspc_path_new )])
1558+ "-j" , "4" , "-T" , "{0}={1}" .format (tblspc_path , tblspc_path_new ),
1559+ "--recovery-target-action=promote" ])
15531560
15541561 # GET PHYSICAL CONTENT FROM RESTORED NODE and COMPARE PHYSICAL CONTENT
15551562 if self .paranoia :
@@ -1585,7 +1592,8 @@ def test_ptrack_alter_tablespace(self):
15851592
15861593 # Restore second ptrack backup and check table consistency
15871594 self .restore_node (backup_dir , 'node' , restored_node , options = [
1588- "-j" , "4" , "-T" , "{0}={1}" .format (tblspc_path , tblspc_path_new )])
1595+ "-j" , "4" , "-T" , "{0}={1}" .format (tblspc_path , tblspc_path_new ),
1596+ "--recovery-target-action=promote" ])
15891597
15901598 # GET PHYSICAL CONTENT FROM RESTORED NODE and COMPARE PHYSICAL CONTENT
15911599 if self .paranoia :
@@ -1682,7 +1690,8 @@ def test_ptrack_multiple_segments(self):
16821690 )
16831691
16841692 self .restore_node (backup_dir , 'node' , restored_node , options = [
1685- "-j" , "4" , "-T" , "{0}={1}" .format (tblspc_path , tblspc_path_new )])
1693+ "-j" , "4" , "-T" , "{0}={1}" .format (tblspc_path , tblspc_path_new ),
1694+ "--recovery-target-action=promote" ])
16861695
16871696 # GET PHYSICAL CONTENT FROM NODE_RESTORED
16881697 if self .paranoia :
0 commit comments