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

Fixes occasional data race flake with TestSDKServerAddListValue #3505

Merged
merged 2 commits into from
Nov 14, 2023

Conversation

igooch
Copy link
Collaborator

@igooch igooch commented Nov 14, 2023

What type of PR is this?

/kind bug

What this PR does / Why we need it:

Fixes occasional data race flake with TestSDKServerAddListValue by putting the s.gsListUpdates call in the logger after the mutex lock.

Which issue(s) this PR fixes:

NA

Special notes for your reviewer:

Puts gsListUpdates call after the mutex lock
@github-actions github-actions bot added the kind/bug These are bugs. label Nov 14, 2023
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 672b9ce0-d81a-4739-9924-c0c8bc554060

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3505/head:pr_3505 && git checkout pr_3505
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.37.0-dev-b026150-amd64

@@ -1175,10 +1175,11 @@ func (s *SDKServer) updateList(ctx context.Context) error {
}
gsCopy := gs.DeepCopy()

s.logger.WithField("batchListUpdates", s.gsListUpdates).Debug("Batch updating List(s)")
Copy link
Member

Choose a reason for hiding this comment

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

That would do it! Nice catch.

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: igooch, markmandel

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@markmandel markmandel enabled auto-merge (squash) November 14, 2023 20:44
@google-oss-prow google-oss-prow bot removed the lgtm label Nov 14, 2023
Copy link

New changes are detected. LGTM label has been removed.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 9ed2b41d-bcbc-41ad-9827-04fbeed8f421

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3505/head:pr_3505 && git checkout pr_3505
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.37.0-dev-a1c1fca-amd64

@markmandel markmandel merged commit 25a2c9e into googleforgames:main Nov 14, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants