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: Reintroduce 'quiet zeros' for otel start time handling #791

Merged
merged 6 commits into from
Jan 2, 2025

Conversation

jesusvazquez
Copy link
Member

@jesusvazquez jesusvazquez commented Dec 11, 2024

This PR attempts to reintroduce the previously reverted feature of quiet zeros.

This PR:

  • Cherry picks 5bd08e6831d90a3ad1c2c351691e28b90849153f and 8630645a7b8b07c4effb08d57e8d87d49903187f
  • Updates processWALSamples and processWBLSamples to handle NaNs.
  • Updates unit tests
  • Introduces a feature flag to make the feature rollout safe

bboreham and others added 3 commits December 11, 2024 14:06
When we want to add a zero at the start-time of the series, we don't
know if a sample was previously added at that timestamp. So, use a
special value which has the correct behaviour when it reaches TSDB.

* Fix up OTLPTranslator tests for quiet-zero NaN change

Signed-off-by: Bryan Boreham <[email protected]>
"Quiet Zeros" are used to insert the starting sample for a counter.
If the zero is out-of-order then we already have some data for the
series, and we should have already handled the start value, so just drop
the quiet zero.

Signed-off-by: Bryan Boreham <[email protected]>
@jesusvazquez jesusvazquez force-pushed the jvp/reimplement-quiet-zeros branch 3 times, most recently from 729830f to 933f96a Compare December 12, 2024 23:09
@jesusvazquez jesusvazquez force-pushed the jvp/reimplement-quiet-zeros branch from 933f96a to 2cc121b Compare December 13, 2024 08:32
We need to ensure all receivers of the data can handle it, before we start sending.

Signed-off-by: Bryan Boreham <[email protected]>
@jesusvazquez jesusvazquez changed the title [WIP] TSDB: Reintroduce 'quiet zeros' for otel start time handling TSDB: Reintroduce 'quiet zeros' for otel start time handling Dec 30, 2024
@jesusvazquez jesusvazquez marked this pull request as ready for review December 30, 2024 09:50
Copy link
Contributor

@krajorama krajorama left a comment

Choose a reason for hiding this comment

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

lgtm

Signed-off-by: Jesus Vazquez <[email protected]>
@jesusvazquez jesusvazquez force-pushed the jvp/reimplement-quiet-zeros branch from b7bbd5b to d8187ec Compare January 2, 2025 15:13
@jesusvazquez jesusvazquez merged commit 93fa761 into main Jan 2, 2025
8 checks passed
@jesusvazquez jesusvazquez deleted the jvp/reimplement-quiet-zeros branch January 2, 2025 15:26
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