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

lib/storage: do not create tsid if metric contains stale marker(#5069) #5174

Merged

Conversation

ilyatrefilov
Copy link
Contributor

@ilyatrefilov ilyatrefilov commented Oct 13, 2023

If the series were deleted and series are no longer ingested into VM, we still get those series recreated in index db because of how stale markers logic works. The solution in this PR is to not add TSID if:

  1. TSID was not found by metric name both in cache and db
  2. If metric contains stale marker as it's value

Resolves #5069

@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (8b6ccad) 60.18% compared to head (70a638a) 60.20%.

❗ Current head 70a638a differs from pull request most recent head 2d285d3. Consider uploading reports for the commit 2d285d3 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5174      +/-   ##
==========================================
+ Coverage   60.18%   60.20%   +0.02%     
==========================================
  Files         398      397       -1     
  Lines       74083    74024      -59     
==========================================
- Hits        44589    44569      -20     
+ Misses      26988    26962      -26     
+ Partials     2506     2493      -13     
Files Coverage Δ
lib/storage/storage.go 71.31% <100.00%> (+0.13%) ⬆️

... and 12 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@hagen1778 hagen1778 left a comment

Choose a reason for hiding this comment

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

Thank you!

@hagen1778 hagen1778 merged commit 188cfe3 into VictoriaMetrics:master Oct 17, 2023
1 check passed
@valyala
Copy link
Collaborator

valyala commented Nov 2, 2023

FYI, this pull request has been included in v1.93.7 LTS release

@valyala
Copy link
Collaborator

valyala commented Nov 15, 2023

FYI, this pull request has been included in v1.95.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Series appear after short amount of time after deletion
3 participants