fix(consumption_metrics): exp backoff retry (#5317)

Split off from #5297. Depends on #5315.
Cc: #5175 for retry
This commit is contained in:
Joonas Koivunen
2023-09-16 01:11:01 +03:00
committed by GitHub
parent 00c4c8e2e8
commit a7f4ee02a3
2 changed files with 115 additions and 38 deletions
@@ -32,7 +32,9 @@ def test_threshold_based_eviction(
synthetic_size_calculation_interval="2s"
metric_collection_endpoint="http://{host}:{port}/nonexistent"
"""
metrics_refused_log_line = ".*metrics endpoint refused the sent metrics.*/nonexistent.*"
metrics_refused_log_line = (
".*metrics_collection:.* upload consumption_metrics (still failed|failed, will retry).*"
)
env = neon_env_builder.init_start()
env.pageserver.allowed_errors.append(metrics_refused_log_line)