add allowed errors for leases in two tests that uses static endpoints

Signed-off-by: Yuchen Liang <yuchen@neon.tech>
This commit is contained in:
Yuchen Liang
2024-06-20 17:28:29 -04:00
parent fba409a158
commit 402cb2c40a
2 changed files with 16 additions and 7 deletions
@@ -88,6 +88,9 @@ def test_ondemand_download_replica(neon_env_builder: NeonEnvBuilder, shard_count
initial_tenant_conf=tenant_conf, initial_tenant_shard_count=shard_count
)
for ps in env.pageservers:
ps.allowed_errors.append(".*page_service.*error obtaining lsn lease.*Tenant .* not found")
endpoint = env.endpoints.create_start("main")
pg_conn = endpoint.connect()
+13 -7
View File
@@ -6,18 +6,24 @@ from fixtures.pageserver.utils import wait_for_last_record_lsn
from fixtures.utils import query_scalar
#
# Create read-only compute nodes, anchored at historical points in time.
#
# This is very similar to the 'test_branch_behind' test, but instead of
# creating branches, creates read-only nodes.
#
def test_readonly_node(neon_simple_env: NeonEnv):
"""
Create read-only compute nodes, anchored at historical points in time.
This is very similar to the 'test_branch_behind' test, but instead of
creating branches, creates read-only nodes.
"""
env = neon_simple_env
env.neon_cli.create_branch("test_readonly_node", "empty")
endpoint_main = env.endpoints.create_start("test_readonly_node")
env.pageserver.allowed_errors.append(".*basebackup .* failed: invalid basebackup lsn.*")
env.pageserver.allowed_errors.extend(
[
".*basebackup .* failed: invalid basebackup lsn.*",
".*page_service.*error obtaining lsn lease.*.*tried to request a page version that was garbage collected",
]
)
main_pg_conn = endpoint_main.connect()
main_cur = main_pg_conn.cursor()