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

Fix ttl #5

Merged
merged 9 commits into from
Nov 27, 2024
Merged

Fix ttl #5

merged 9 commits into from
Nov 27, 2024

Conversation

mattdurham
Copy link
Collaborator

Ensure the TTL is always comparing apples to apples.
Added a new metric for file vs network drift
Remove unneeded code

@mattdurham mattdurham requested a review from a team as a code owner November 26, 2024 19:38
if seriesAge > q.ttl {
// TODO @mattdurham add metric here for ttl expired.
// Since we arent pushing the TS forward we should put it back into the pool.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can this comment also explain what causes the expired series to be discarded, if it's not being discarded here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

// For any series that exceeds the time to live (ttl) based on its timestamp we do not want to push it to the networking layer
// but instead drop it here by continuing.

The above sound reasonable?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds good. I had to get my head back into the codebase, the PutTimeSeriesIntoPool function sounds like you're returning data to the WAL, not returning the allocated object to be reused, at least when my head is not in the implementation.

@mattdurham mattdurham enabled auto-merge November 27, 2024 14:34
@mattdurham mattdurham merged commit 83ac26b into main Nov 27, 2024
2 checks passed
@mattdurham mattdurham deleted the fix_ttl branch November 27, 2024 14:59
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.

3 participants