Skip to content

Commit 24efa2b

Browse files
authored
Improve consistency check warn log (#6366)
1 parent 66a1b6f commit 24efa2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/querier/blocks_store_queryable.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,9 @@ func (q *blocksStoreQuerier) queryWithConsistencyCheck(ctx context.Context, logg
596596
}
597597

598598
// We've not been able to query all expected blocks after all retries.
599+
err = fmt.Errorf("consistency check failed because some blocks were not queried: %s", strings.Join(convertULIDsToString(remainingBlocks), " "))
599600
level.Warn(util_log.WithContext(ctx, logger)).Log("msg", "failed consistency check", "err", err)
600-
return fmt.Errorf("consistency check failed because some blocks were not queried: %s", strings.Join(convertULIDsToString(remainingBlocks), " "))
601+
return err
601602
}
602603

603604
func (q *blocksStoreQuerier) fetchSeriesFromStores(

0 commit comments

Comments
 (0)