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

replacing patch with update during allocation #150

Merged
merged 1 commit into from
Jan 31, 2022

Conversation

dgkanatsios
Copy link
Collaborator

Current allocation logic with PATCH the .status.state of a GameServer Custom Resource with the new "Active" state. However, there are cases in which this might create issues since PATCH does not check the current state of the object. For example, the object might have been deleted or crashed and the cache might have not been updated. This will lead to the allocation API service returning an invalid active game server to the caller. To prevent this, we are switching the Patch with Update which will fail if the object's state has changed.
For the time being, this will require the customer to implement a retry logic till we can implement some retry logic ourselves, maybe as part of #7.

@dgkanatsios dgkanatsios added this to the 0.3.0 milestone Jan 25, 2022
@dgkanatsios dgkanatsios merged commit 264c3da into master Jan 31, 2022
@dgkanatsios dgkanatsios deleted the updateinsteadofpatch branch January 31, 2022 17:39
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.

2 participants