Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Fix prometheus metric panic when using additional labels #451

Merged
merged 2 commits into from
Jun 9, 2022

Conversation

hamersaw
Copy link
Contributor

@hamersaw hamersaw commented Jun 9, 2022

TL;DR

This PR pulls the fix from flytestdlib. The issue is that Golangs append implementation may modify the underlying array. So when we use this to compute metric labels, we have the ability to corrupt the underlying array meaning other metrics will fail.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

^^^

Tracking Issue

flyteorg/flyte#2597

Follow-up issue

NA

Signed-off-by: Daniel Rammer <[email protected]>
@hamersaw hamersaw requested review from kumare3 and EngHabu as code owners June 9, 2022 15:45
@codecov
Copy link

codecov bot commented Jun 9, 2022

Codecov Report

Merging #451 (c8ceb34) into master (ba197a0) will not change coverage.
The diff coverage is n/a.

Signed-off-by: Daniel Rammer <[email protected]>
@hamersaw hamersaw merged commit d5ba4c7 into master Jun 9, 2022
@hamersaw hamersaw deleted the bug/fix-prometheus-metrics-panic branch June 9, 2022 18:22
eapolinario pushed a commit to eapolinario/flytepropeller that referenced this pull request Aug 9, 2023
* updated flytestdlib

Signed-off-by: Daniel Rammer <[email protected]>

* set flytestdlib to new release

Signed-off-by: Daniel Rammer <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants