Skip to content

Conversation

fpetkovski
Copy link
Contributor

@fpetkovski fpetkovski commented Oct 7, 2025

The compressed buffer is released before the request is made, which leads to corrupted remote-write payloads being sent to the target.

The compression function uses the pattern where the destination slice can be passed in, and the function returns a reference to it, adjusted for length.

The compressed buffer is released before the request is made, which leads
to corrupted remote-write payloads being sent to the target.

Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
@fpetkovski fpetkovski force-pushed the fix-buffer-management branch from 915dc2d to 382efef Compare October 7, 2025 13:05
Copy link
Member

@saswatamcode saswatamcode left a comment

Choose a reason for hiding this comment

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

Thanks for catching!

@bwplotka bwplotka merged commit 6886445 into prometheus:main Oct 7, 2025
8 checks passed
@bwplotka
Copy link
Member

bwplotka commented Oct 7, 2025

Thanks!

@bwplotka
Copy link
Member

bwplotka commented Oct 7, 2025

Although.. some unit test would be nice so we don't repeat this mistake (:

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