From 4519ef8d21075062ff943b52bd9ce2659b20c32b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Philippe=20Qu=C3=A9m=C3=A9ner?= Date: Wed, 28 May 2025 22:59:28 +0200 Subject: [PATCH] chore(unified-storage): increase background request timeout (#106186) --- pkg/storage/legacysql/dualwrite/dualwriter.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/storage/legacysql/dualwrite/dualwriter.go b/pkg/storage/legacysql/dualwrite/dualwriter.go index 5ac9889025a..0c23cd8e02e 100644 --- a/pkg/storage/legacysql/dualwrite/dualwriter.go +++ b/pkg/storage/legacysql/dualwrite/dualwriter.go @@ -21,7 +21,11 @@ var ( _ grafanarest.Storage = (*dualWriter)(nil) ) -const backgroundReqTimeout = 5 * time.Second +// Let's give the background queries a bit more time to complete +// as we also run them as part of load tests that might need longer +// to complete. Those run in the background and won't impact the +// user experience in any way. +const backgroundReqTimeout = time.Minute // dualWriter will write first to legacy, then to unified keeping the same internal ID type dualWriter struct {