Suppress "request was dropped" errors in test_timeline_archive (#11190)

## Problem

Test `test_timeline_archive` is flaky because it makes requests that are
intended to fail. It sometimes leads to warning in pageserver's logs.
More details are in the issue.

- Closes: https://github.com/neondatabase/neon/issues/11177

## Summary of changes
- Suppress such errors.
This commit is contained in:
Dmitrii Kovalkov
2025-03-12 17:23:31 +04:00
committed by GitHub
parent 1c0ff3c04d
commit 73e37ae388

View File

@@ -42,6 +42,14 @@ def test_timeline_archive(neon_env_builder: NeonEnvBuilder, shard_count: int):
# If we run the unsharded version, talk to the storage controller
ps_http = env.storage_controller.pageserver_api()
for ps in env.pageservers:
# We make /archival_config requests that are intended to fail.
# It's expected that storcon drops requests to other pageservers after
# it gets the first error (https://github.com/neondatabase/neon/issues/11177)
ps.allowed_errors.append(
".*WARN.* path=/v1/tenant/.*/archival_config .*request was dropped before completing",
)
# first try to archive a non existing timeline for an existing tenant:
invalid_timeline_id = TimelineId.generate()
with pytest.raises(PageserverApiException, match="timeline not found") as exc: