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

SDK server does not remove items from lists ( new 1.37 feature ) #3593

Closed
jlory opened this issue Jan 16, 2024 · 2 comments
Closed

SDK server does not remove items from lists ( new 1.37 feature ) #3593

jlory opened this issue Jan 16, 2024 · 2 comments
Labels
kind/bug These are bugs.

Comments

@jlory
Copy link
Contributor

jlory commented Jan 16, 2024

What happened:

I'm currently heavily testing the new counters and lists feature from Agones 1.37, I noticed that removing an item from a list does not remove the item on the GameServer CRD.

What you expected to happen:

I assume that it should be be possible to remove an item from a list and that it will be reflected in the CRD status object.

How to reproduce it (as minimally and precisely as possible):

Create a fleet with a list, add an item to that list, then remove it ( from an sdk so it goes to the sdk server ), describe the GameServer object with kubectl, the item is still in the list.

Anything else we need to know?:

I digged into the sdk server and I believe I found the issue, the sdk server holds a list of updates that need to go out https://github.com/googleforgames/agones/blob/v1.37.0/pkg/sdkserver/sdkserver.go#L132 later on we have the function that update the CRD to the k8s api, if it's a success we then clean the counters update buffer but not the list one: https://github.com/googleforgames/agones/blob/v1.37.0/pkg/sdkserver/sdkserver.go#L1233

I did test locally and it's a one liner change minus unit tests:

// Clear the gsCounterUpdates and gsListUpdates
s.gsCounterUpdates = map[string]counterUpdateRequest{}
s.gsListUpdates = map[string]listUpdateRequest{}

If the issues is ack by you, I will submit a PR very soon.

Environment:

  • Agones version: 1.37
  • Kubernetes v1.26.11-eks-8cb36c9
  • Cloud provider or hardware configuration: AWS
  • Install method (yaml/helm): Helm
  • Troubleshooting guide log(s):
@jlory jlory added the kind/bug These are bugs. label Jan 16, 2024
@jlory jlory closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2024
@jlory jlory reopened this Jan 16, 2024
@igooch
Copy link
Collaborator

igooch commented Jan 16, 2024

Thanks for trying it out and catching that! @markmandel can review the PR.

@jlory
Copy link
Contributor Author

jlory commented Jan 29, 2024

Closing this issue since it was fixed by: #3606

@jlory jlory closed this as completed Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug These are bugs.
Projects
None yet
Development

No branches or pull requests

2 participants