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

tests: disable autovacuum by default#389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gsmolk merged 1 commit intomasterfromautovacuum_off
May 25, 2021
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 9 additions & 20 deletionstests/archive.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -903,7 +903,6 @@ def test_basic_master_and_replica_concurrent_archiving(self):
initdb_params=['--data-checksums'],
pg_options={
'checkpoint_timeout': '30s',
'autovacuum': 'off',
'archive_timeout': '10s'})

replica = self.make_simple_node(
Expand DownExpand Up@@ -1002,8 +1001,7 @@ def test_concurrent_archiving(self):
master = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'master'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', master)
Expand DownExpand Up@@ -1235,8 +1233,7 @@ def test_archive_catalog(self):
initdb_params=['--data-checksums'],
pg_options={
'archive_timeout': '30s',
'checkpoint_timeout': '30s',
'autovacuum': 'off'})
'checkpoint_timeout': '30s'})

if self.get_version(master) < self.version_to_num('9.6.0'):
self.del_test_dir(module_name, fname)
Expand DownExpand Up@@ -1558,8 +1555,7 @@ def test_archive_catalog_1(self):
initdb_params=['--data-checksums'],
pg_options={
'archive_timeout': '30s',
'checkpoint_timeout': '30s',
'autovacuum': 'off'})
'checkpoint_timeout': '30s'})

self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node)
Expand DownExpand Up@@ -1614,8 +1610,7 @@ def test_archive_catalog_2(self):
initdb_params=['--data-checksums'],
pg_options={
'archive_timeout': '30s',
'checkpoint_timeout': '30s',
'autovacuum': 'off'})
'checkpoint_timeout': '30s'})

self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node)
Expand DownExpand Up@@ -1811,8 +1806,7 @@ def test_hexadecimal_timeline(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node)
Expand DownExpand Up@@ -1875,7 +1869,6 @@ def test_archiving_and_slots(self):
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={
'autovacuum': 'off',
'checkpoint_timeout': '30s',
'max_wal_size': '64MB'})

Expand DownExpand Up@@ -2008,8 +2001,7 @@ def test_archive_pg_receivexlog_partial_handling(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node)
Expand DownExpand Up@@ -2098,8 +2090,7 @@ def test_multi_timeline_recovery_prefetching(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node)
Expand DownExpand Up@@ -2214,8 +2205,7 @@ def test_archive_get_batching_sanity(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

if self.get_version(node) < self.version_to_num('9.6.0'):
self.del_test_dir(module_name, fname)
Expand DownExpand Up@@ -2287,8 +2277,7 @@ def test_archive_get_prefetch_corruption(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node)
Expand Down
20 changes: 6 additions & 14 deletionstests/backup.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1401,8 +1401,7 @@ def test_drop_rel_during_backup_page(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node)
Expand DownExpand Up@@ -1660,8 +1659,7 @@ def test_pg_11_adjusted_wal_segment_size(self):
'--data-checksums',
'--wal-segsize=64'],
pg_options={
'min_wal_size': '128MB',
'autovacuum': 'off'})
'min_wal_size': '128MB'})

self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node)
Expand DownExpand Up@@ -2576,9 +2574,7 @@ def test_issue_132(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={
'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node)
Expand DownExpand Up@@ -2616,9 +2612,7 @@ def test_issue_132_1(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={
'autovacuum': 'off'})
initdb_params=['--data-checksums'])

# TODO: check version of old binary, it should be 2.1.4, 2.1.5 or 2.2.1

Expand DownExpand Up@@ -2963,8 +2957,7 @@ def test_issue_203(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node)
Expand DownExpand Up@@ -3004,8 +2997,7 @@ def test_issue_231(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node)
Expand Down
46 changes: 14 additions & 32 deletionstests/compatibility.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -19,9 +19,7 @@ def test_backward_compatibility_page(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={
'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir, old_binary=True)
self.show_pb(backup_dir)
Expand DownExpand Up@@ -156,8 +154,7 @@ def test_backward_compatibility_delta(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir, old_binary=True)
self.show_pb(backup_dir)
Expand DownExpand Up@@ -296,9 +293,7 @@ def test_backward_compatibility_ptrack(self):
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
ptrack_enable=True,
initdb_params=['--data-checksums'],
pg_options={
'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir, old_binary=True)
self.show_pb(backup_dir)
Expand DownExpand Up@@ -408,9 +403,7 @@ def test_backward_compatibility_compression(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={
'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir, old_binary=True)
self.add_instance(backup_dir, 'node', node, old_binary=True)
Expand DownExpand Up@@ -572,9 +565,7 @@ def test_backward_compatibility_merge(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={
'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir, old_binary=True)
self.add_instance(backup_dir, 'node', node, old_binary=True)
Expand DownExpand Up@@ -630,8 +621,7 @@ def test_backward_compatibility_merge_1(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir, old_binary=True)
self.add_instance(backup_dir, 'node', node, old_binary=True)
Expand DownExpand Up@@ -703,8 +693,7 @@ def test_backward_compatibility_merge_2(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir, old_binary=True)
self.add_instance(backup_dir, 'node', node, old_binary=True)
Expand DownExpand Up@@ -826,8 +815,7 @@ def test_backward_compatibility_merge_3(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir, old_binary=True)
self.add_instance(backup_dir, 'node', node, old_binary=True)
Expand DownExpand Up@@ -953,8 +941,7 @@ def test_backward_compatibility_merge_4(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir, old_binary=True)
self.add_instance(backup_dir, 'node', node, old_binary=True)
Expand DownExpand Up@@ -1036,8 +1023,7 @@ def test_backward_compatibility_merge_5(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir, old_binary=True)
self.add_instance(backup_dir, 'node', node, old_binary=True)
Expand DownExpand Up@@ -1112,8 +1098,7 @@ def test_page_vacuum_truncate(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir, old_binary=True)
self.add_instance(backup_dir, 'node', node, old_binary=True)
Expand DownExpand Up@@ -1217,8 +1202,7 @@ def test_page_vacuum_truncate_compression(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir, old_binary=True)
self.add_instance(backup_dir, 'node', node, old_binary=True)
Expand DownExpand Up@@ -1297,8 +1281,7 @@ def test_page_vacuum_truncate_compressed_1(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir, old_binary=True)
self.add_instance(backup_dir, 'node', node, old_binary=True)
Expand DownExpand Up@@ -1403,8 +1386,7 @@ def test_hidden_files(self):
node = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'node'),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={'autovacuum': 'off'})
initdb_params=['--data-checksums'])

self.init_pb(backup_dir, old_binary=True)
self.add_instance(backup_dir, 'node', node, old_binary=True)
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp