Skip to content

Commit

Permalink
Improve consistency check warn log (cortexproject#6366)
Browse files Browse the repository at this point in the history
  • Loading branch information
SungJin1212 authored Nov 24, 2024
1 parent 66a1b6f commit 24efa2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/querier/blocks_store_queryable.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 24efa2b

Please sign in to comment.