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

deltatocumulative re-uses memory #35872

Closed
sh0rez opened this issue Oct 18, 2024 · 4 comments
Closed

deltatocumulative re-uses memory #35872

sh0rez opened this issue Oct 18, 2024 · 4 comments
Labels
bug Something isn't working processor/deltatocumulative

Comments

@sh0rez
Copy link
Member

sh0rez commented Oct 18, 2024

Component(s)

processor/deltatocumulative

What happened?

The new Linear part of deltatocumulative does not properly clone the first datapoint, instead stores the one from the pmetric.Metrics it receives.

This leads to a racy condition where subsequent aggregations change the emitted result, possibly leading to false outputs.

To fix, change to dp.Clone() here:

Collector version

2b9ec02

Environment information

No response

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@ArthurSens
Copy link
Member

This was fixed by #35562, right?

Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Copy link
Contributor

Pinging code owners for processor/deltatocumulative: @sh0rez @RichieSams. See Adding Labels via Comments if you do not have permissions to add labels yourself. For example, comment '/label priority:p2 -needs-triaged' to set the priority and remove the needs-triaged label.

@crobert-1
Copy link
Member

This was fixed by #35562, right?

I believe you're right, fixed by #35562

(@sh0rez please feel free to let us know if this is incorrect)

@crobert-1 crobert-1 removed Stale needs triage New item requiring triage labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working processor/deltatocumulative
Projects
None yet
3 participants