@@ -911,7 +911,7 @@ def test_page_backup_with_alien_wal_segment(self):
911911"create table t_heap_alien as select i as id, "
912912"md5(i::text) as text, "
913913"md5(repeat(i::text,10))::tsvector as tsvector "
914- "from generate_series(0,1000 ) i;" )
914+ "from generate_series(0,100000 ) i;" )
915915
916916# copy lastest wal segment
917917wals_dir = os .path .join (backup_dir ,'wal' ,'alien_node' )
@@ -925,6 +925,7 @@ def test_page_backup_with_alien_wal_segment(self):
925925# file = os.path.join(wals_dir, '000000010000000000000004')
926926print (file )
927927print (file_destination )
928+ os .remove (file_destination )
928929os .rename (file ,file_destination )
929930
930931# Single-thread PAGE backup
@@ -944,8 +945,7 @@ def test_page_backup_with_alien_wal_segment(self):
944945'Could not read WAL record at' in e .message and
945946'WAL file is from different database system: WAL file database system identifier is' in e .message and
946947'pg_control database system identifier is' in e .message and
947- 'Possible WAL corruption. Error has occured during reading WAL segment "{0}"' .format (
948- file_destination )in e .message ,
948+ 'Possible WAL corruption. Error has occured during reading WAL segment' in e .message ,
949949'\n Unexpected Error Message: {0}\n CMD: {1}' .format (
950950repr (e .message ),self .cmd ))
951951
@@ -971,8 +971,7 @@ def test_page_backup_with_alien_wal_segment(self):
971971'Could not read WAL record at' in e .message and
972972'WAL file is from different database system: WAL file database system identifier is' in e .message and
973973'pg_control database system identifier is' in e .message and
974- 'Possible WAL corruption. Error has occured during reading WAL segment "{0}"' .format (
975- file_destination )in e .message ,
974+ 'Possible WAL corruption. Error has occured during reading WAL segment' in e .message ,
976975'\n Unexpected Error Message: {0}\n CMD: {1}' .format (
977976repr (e .message ),self .cmd ))
978977