Fix test_subscriber_synchronous_commit flakiness. (#10057)

6f7aeaa configured LFC for USE_LFC case, but omitted setting
shared_buffers for non USE_LFC, causing flakiness.

ref https://github.com/neondatabase/neon/issues/9989
This commit is contained in:
Arseny Sher
2024-12-12 14:57:00 +03:00
committed by GitHub
parent ec0ce06c16
commit c9a773af37

View File

@@ -573,17 +573,18 @@ def test_subscriber_synchronous_commit(neon_simple_env: NeonEnv, vanilla_pg: Van
vanilla_pg.safe_psql("create extension neon;")
env.create_branch("subscriber")
# We want all data to fit into shared_buffers because later we stop
# safekeeper and insert more; this shouldn't cause page requests as they
# will be stuck.
# We want all data to fit into shared_buffers or LFC cache because later we
# stop safekeeper and insert more; this shouldn't cause page requests as
# they will be stuck.
if USE_LFC:
config_lines = ["neon.max_file_cache_size = 32MB", "neon.file_cache_size_limit = 32MB"]
else:
config_lines = [
"shared_buffers = 32MB",
]
sub = env.endpoints.create(
"subscriber",
config_lines=[
"neon.max_file_cache_size = 32MB",
"neon.file_cache_size_limit = 32MB",
]
if USE_LFC
else [],
config_lines=config_lines,
)
sub.start()