Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit297dd2a

Browse files
committed
test for previous commit
1 parentc8909b8 commit297dd2a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

‎tests/backup_test.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3573,3 +3573,36 @@ def test_start_time_few_nodes(self):
35733573
show_backup2=self.show_pb(backup_dir2,'node2')[3]
35743574
self.assertEqual(show_backup1['id'],show_backup2['id'])
35753575

3576+
deftest_regress_issue_585(self):
3577+
"""https://github.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+
withopen(os.path.join(node.data_dir,'pg_multixact/offsets/1000'),'wb')asf:
3590+
pass
3591+
withopen(os.path.join(node.data_dir,'pg_multixact/members/1000'),'wb')asf:
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

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp