fix: allow ERROR log to appear per allowed failure (#3696)

The test already allows the background thread trying to checkpoint to
fail, however the resulting log message is currently not allowed thus
causing flakyness.
This commit is contained in:
Joonas Koivunen
2023-03-07 14:44:04 +02:00
committed by GitHub
parent 0acf9ace9a
commit b05e94e4ff

View File

@@ -618,6 +618,9 @@ def test_timeline_deletion_with_files_stuck_in_upload_queue(
# checkpoint operations. Hence, checkpoint is allowed to fail now.
log.info("sending delete request")
checkpoint_allowed_to_fail.set()
env.pageserver.allowed_errors.append(
".+ERROR Error processing HTTP request: InternalServerError\\(timeline is Stopping"
)
client.timeline_delete(tenant_id, timeline_id)
assert not timeline_path.exists()