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

tsdb creation supports fingerprint overrides #6178

Merged
merged 1 commit into from
May 17, 2022

Conversation

owen-d
Copy link
Member

@owen-d owen-d commented May 17, 2022

This PR ensures we use the correct (without tenant label) fingerprints in TSDB creation ordering.

This is a tricky one. I noticed crashes during TSDB WAL replays due to out of order index entries. This is because we add a __loki_tenant__ label to TSDB for pre-compacted indices. Previously, we were sorting series by the label-hashes which included the tenant label, which exposed us to ordering issues. Now, we use the correct fingerprint without the synthetic label.

ref #5428

@owen-d owen-d requested a review from a team as a code owner May 17, 2022 14:23
@grafanabot
Copy link
Collaborator

./tools/diff_coverage.sh ../loki-main/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki

Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell.

+           ingester	0%
+        distributor	0%
+            querier	0%
+ querier/queryrange	0%
+               iter	0%
+            storage	0%
+           chunkenc	0%
+              logql	0%
+               loki	0%

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.

3 participants