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

[opampsupervisor] avoid nil pointer access when reporting remote config status #36849

Merged

Conversation

bacherfl
Copy link
Contributor

@bacherfl bacherfl commented Dec 16, 2024

Description

When working on an unrelated PR I noticed that one of the opamp supervisor e2e tests was randomly failing, due to a nil pointer access - see https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/12350739300/job/34464544343?pr=36844#step:8:647
This PR avoids this by using the GetConfigHash() method of the remoteConfig instead of directly accessing the ConfigHash property.

Link to tracking issue

Fixes #36850

Signed-off-by: Florian Bacher <[email protected]>
@bacherfl bacherfl marked this pull request as ready for review December 16, 2024 13:07
@bacherfl bacherfl requested a review from a team as a code owner December 16, 2024 13:07
@dmitryax dmitryax merged commit ddfadc2 into open-telemetry:main Dec 16, 2024
160 checks passed
@github-actions github-actions bot added this to the next release milestone Dec 16, 2024
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
…ig status (open-telemetry#36849)

#### Description

When working on an unrelated PR I noticed that one of the opamp
supervisor e2e tests was randomly failing, due to a nil pointer access -
see
https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/12350739300/job/34464544343?pr=36844#step:8:647
This PR avoids this by using the `GetConfigHash()` method of the
`remoteConfig` instead of directly accessing the `ConfigHash` property.

#### Link to tracking issue

Fixes open-telemetry#36850

---------

Signed-off-by: Florian Bacher <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Failed test][cmd/opampsupervisor] TestSupervisorPersistsNewInstanceID randomly failed
4 participants