Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 361af24

Browse files
committed
tests: remove compatibility.CompatibilityTest.test_backup_concurrent_drop_table
1 parent 79f940f commit 361af24

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

tests/compatibility.py

-46
Original file line numberDiff line numberDiff line change
@@ -532,49 +532,3 @@ def test_backward_compatibility_merge(self):
532532

533533
# Clean after yourself
534534
self.del_test_dir(module_name, fname)
535-
536-
# @unittest.skip("skip")
537-
def test_backup_concurrent_drop_table(self):
538-
""""""
539-
fname = self.id().split('.')[3]
540-
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
541-
node = self.make_simple_node(
542-
base_dir=os.path.join(module_name, fname, 'node'),
543-
set_replication=True,
544-
initdb_params=['--data-checksums'])
545-
546-
self.init_pb(backup_dir)
547-
self.add_instance(backup_dir, 'node', node, old_binary=True)
548-
node.slow_start()
549-
550-
node.pgbench_init(scale=1)
551-
552-
# FULL backup
553-
gdb = self.backup_node(
554-
backup_dir, 'node', node,
555-
options=['--stream', '--compress', '--log-level-file=VERBOSE'],
556-
gdb=True, old_binary=True)
557-
558-
gdb.set_breakpoint('backup_data_file')
559-
gdb.run_until_break()
560-
561-
node.safe_psql(
562-
'postgres',
563-
'DROP TABLE pgbench_accounts')
564-
565-
# do checkpoint to guarantee filenode removal
566-
node.safe_psql(
567-
'postgres',
568-
'CHECKPOINT')
569-
570-
gdb.remove_all_breakpoints()
571-
gdb.continue_execution_until_exit()
572-
573-
# show_backup = self.show_pb(backup_dir, 'node')[0]
574-
# self.assertEqual(show_backup['status'], "OK")
575-
576-
# validate with fresh binary, it MUST be successful
577-
self.validate_pb(backup_dir)
578-
579-
# Clean after yourself
580-
self.del_test_dir(module_name, fname)

0 commit comments

Comments
 (0)