Skip to content

[metrics.payload] Fix concurrency bug in payload parser aggregation - #1235

Merged
manugarg merged 2 commits into
mainfrom
payload_bug
Feb 27, 2026
Merged

manugarg merged 2 commits into
mainfrom
payload_bug

Conversation

@manugarg

Copy link
Copy Markdown
Contributor
  • Payload parser's aggrgatedMetrics map was not lock protected and parser can be called concurrently if there are multiple targets.
  • Fixed that by using locks and added a test to detect a similar bug in future.

- Payload parser's aggrgatedMetrics map was not lock protected and parser
can be called concurrently if there are multiple targets.
- Fixed that by using locks and added a test to detect a similar bug in
  future.
@manugarg
manugarg merged commit f4de1e6 into main Feb 27, 2026
12 checks passed
@manugarg
manugarg deleted the payload_bug branch February 27, 2026 20:39
@manugarg manugarg added this to the v0.14.2 milestone Feb 27, 2026
conallob pushed a commit to conallob/cloudprober that referenced this pull request Mar 10, 2026
…loudprober#1235)

* [metrics.payload] Fix concurrency bug in payload parser aggregation

- Payload parser's aggrgatedMetrics map was not lock protected and parser
can be called concurrently if there are multiple targets.
- Fixed that by using locks and added a test to detect a similar bug in
  future.

* Add/fix copyright header
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.

1 participant