Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set timestamp in instant query done by canaries #2732

Merged

Conversation

sandeepsukhani
Copy link
Contributor

@sandeepsukhani sandeepsukhani commented Oct 6, 2020

What this PR does / why we need it:
We do not set a timestamp in instant queries being done by canaries so loki defaults it to time.Now().
This causes 2 identical loki servers to return a different timestamp in response when running behind query tee and hence treating it as a failure in getting the same response.

Copy link
Collaborator

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov-commenter
Copy link

Codecov Report

Merging #2732 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2732      +/-   ##
==========================================
- Coverage   61.37%   61.35%   -0.03%     
==========================================
  Files         173      173              
  Lines       13465    13465              
==========================================
- Hits         8264     8261       -3     
- Misses       4447     4449       +2     
- Partials      754      755       +1     
Impacted Files Coverage Δ
pkg/promtail/targets/file/filetarget.go 64.08% <0.00%> (-2.12%) ⬇️

@sandeepsukhani sandeepsukhani merged commit 76e73d7 into grafana:master Oct 6, 2020
cyriltovena pushed a commit to cyriltovena/loki that referenced this pull request Jun 11, 2021
…2732)

* Add validation check for chunks and index Prefix

This change would add a check if chunks and index prefix
in schema config exists.

Signed-off-by: Jay Batra <jaybatra73@gmail.com>

Co-authored-by: Marco Pracucci <marco@pracucci.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants