-
Notifications
You must be signed in to change notification settings - Fork 772
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[prometheus] Fix issue with corrupted buffers when reading both OpenM…
…etrics and plain text formats (#5623) Co-authored-by: Piotr Kiełkowicz <[email protected]> Co-authored-by: Vishwesh Bankwar <[email protected]> Co-authored-by: Mikel Blanchard <[email protected]>
- Loading branch information
1 parent
b444464
commit 8177a39
Showing
7 changed files
with
207 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
This change results in a regression causing no output to be displayed when
IncreaseBufferSize(...)
is needed. The issue seems to be thatIncreaseBufferSize(...)
is taking a reference to thebuffer
local variable, but not tothis.openMetricsBuffer
orthis.plainTextBuffer
, so these members do not get the updated content after a resize occurs. Then on 294 when we try to accessthis.openMetricsBuffer
orthis.plainTextBuffer
it is the original buffer instead of the resized buffer.