From 24efa2bc291c92e95baa307a69563e43fc2afd6c Mon Sep 17 00:00:00 2001 From: SungJin1212 Date: Mon, 25 Nov 2024 03:22:39 +0900 Subject: [PATCH] Improve consistency check warn log (#6366) --- pkg/querier/blocks_store_queryable.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/querier/blocks_store_queryable.go b/pkg/querier/blocks_store_queryable.go index 9c08b40ee1..ffad6c5085 100644 --- a/pkg/querier/blocks_store_queryable.go +++ b/pkg/querier/blocks_store_queryable.go @@ -596,8 +596,9 @@ func (q *blocksStoreQuerier) queryWithConsistencyCheck(ctx context.Context, logg } // We've not been able to query all expected blocks after all retries. + err = fmt.Errorf("consistency check failed because some blocks were not queried: %s", strings.Join(convertULIDsToString(remainingBlocks), " ")) level.Warn(util_log.WithContext(ctx, logger)).Log("msg", "failed consistency check", "err", err) - return fmt.Errorf("consistency check failed because some blocks were not queried: %s", strings.Join(convertULIDsToString(remainingBlocks), " ")) + return err } func (q *blocksStoreQuerier) fetchSeriesFromStores(