mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-01 20:40:37 +00:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user