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

Backport of Address a data race setting seal wrapper health attributes into release/1.16.x #27017

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #27014 to be assessed for backporting due to the inclusion of the label backport/1.16.x.

The below text is copied from the body of the original PR.


  • When updating a seal wrapper's lastHealthCheck in a failure scenario we would read the lastSeenHealthy value in order to not update it outside of a locked context. This lead to the data race.

  • Merge the SetHealthy and setHealthy functions into one, in order to combine the logic and locking in a single function


Overview of commits

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core requested a review from a team as a code owner May 14, 2024 15:06
@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/stevendpclark/vault-27093-seal-wrapper-data-race/greatly-communal-pig branch from 68083c1 to 9215000 Compare May 14, 2024 15:06
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label May 14, 2024
@stevendpclark stevendpclark self-assigned this May 14, 2024
@stevendpclark stevendpclark added this to the 1.16.3 milestone May 14, 2024
@stevendpclark stevendpclark enabled auto-merge (squash) May 14, 2024 15:10
Copy link

Build Results:
All builds succeeded! ✅

Copy link

github-actions bot commented May 14, 2024

CI Results:
All Go tests succeeded! ✅

@stevendpclark stevendpclark merged commit aea1ea6 into release/1.16.x May 14, 2024
78 of 79 checks passed
@stevendpclark stevendpclark deleted the backport/stevendpclark/vault-27093-seal-wrapper-data-race/greatly-communal-pig branch May 14, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants