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

Address a data race setting seal wrapper health attributes #27014

Merged
merged 2 commits into from
May 14, 2024

Conversation

stevendpclark
Copy link
Contributor

  • 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

 - 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
@stevendpclark stevendpclark added this to the 1.15.9 milestone May 14, 2024
@stevendpclark stevendpclark self-assigned this May 14, 2024
@stevendpclark stevendpclark requested a review from a team as a code owner May 14, 2024 14:44
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label May 14, 2024
Copy link

github-actions bot commented May 14, 2024

CI Results:
All Go tests succeeded! ✅

Copy link

github-actions bot commented May 14, 2024

Build Results:
All builds succeeded! ✅

Copy link
Contributor

@victorr victorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

Copy link

@peteski22 peteski22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevendpclark stevendpclark enabled auto-merge (squash) May 14, 2024 15:01
@stevendpclark stevendpclark merged commit 029d151 into main May 14, 2024
83 checks passed
@stevendpclark stevendpclark deleted the stevendpclark/vault-27093-seal-wrapper-data-race branch May 14, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

3 participants