mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-10 23:12:54 +00:00
tests: suppress excessive pageserver errors in test_timeline_ancestor_detach_errors (#11277)
## Problem The test is flaky because of the same reasons as described in https://github.com/neondatabase/neon/issues/11177. The test has already suppressed these `WARN` and `ERROR` log messages, but the regexp didn't match all possible errors. ## Summary of changes - Change regexp to suppress all possible allowed error log messages.
This commit is contained in:
@@ -812,11 +812,13 @@ def test_timeline_ancestor_detach_errors(neon_env_builder: NeonEnvBuilder, shard
|
||||
|
||||
for ps in pageservers.values():
|
||||
ps.allowed_errors.extend(SHUTDOWN_ALLOWED_ERRORS)
|
||||
# We make /detach_ancestor 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.extend(
|
||||
[
|
||||
".* WARN .* path=/v1/tenant/.*/timeline/.*/detach_ancestor request_id=.*: request was dropped before completing",
|
||||
# rare error logging, which is hard to reproduce without instrumenting responding with random sleep
|
||||
'.* ERROR .* path=/v1/tenant/.*/timeline/.*/detach_ancestor request_id=.*: Cancelled request finished with an error: Conflict\\("no ancestors"\\)',
|
||||
".* ERROR .* path=/v1/tenant/.*/timeline/.*/detach_ancestor request_id=.*: Cancelled request finished with an error.*",
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user