mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-07 21:42:56 +00:00
tests: accomodate some messages that can fail tests (#8144)
## Problem - `test_storage_controller_many_tenants` can fail with warnings in the storage controller about tenant creation holding a lock for too long, because this test stresses the machine running the test with many concurrent timeline creations - `test_tenant_delete_smoke` can fail when synthetic remote storage errors show up ## Summary of changes - tolerate warnings about slow timeline creation in test_storage_controller_many_tenants - tolerate both possible errors during error_tolerant_delete
This commit is contained in:
@@ -48,7 +48,16 @@ def test_storage_controller_many_tenants(
|
||||
|
||||
# We will intentionally stress reconciler concurrrency, which triggers a warning when lots
|
||||
# of shards are hitting the delayed path.
|
||||
env.storage_controller.allowed_errors.append(".*Many shards are waiting to reconcile")
|
||||
env.storage_controller.allowed_errors.extend(
|
||||
[
|
||||
# We will intentionally stress reconciler concurrrency, which triggers a warning when lots
|
||||
# of shards are hitting the delayed path.
|
||||
".*Many shards are waiting to reconcile",
|
||||
# We will create many timelines concurrently, so they might get slow enough to trip the warning
|
||||
# that timeline creation is holding a lock too long.
|
||||
".*Shared lock by TimelineCreate.*was held.*",
|
||||
]
|
||||
)
|
||||
|
||||
for ps in env.pageservers:
|
||||
# This can happen because when we do a loop over all pageservers and mark them offline/active,
|
||||
|
||||
Reference in New Issue
Block a user