Skip to content

Commit

Permalink
Improve consistency check warn log
Browse files Browse the repository at this point in the history
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
  • Loading branch information
SungJin1212 committed Nov 22, 2024
1 parent 0dc2e33 commit f08a3ef
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 f08a3ef

Please sign in to comment.