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

limited scope of of retry logic to very specific 500-level codes from… #165

Merged
merged 2 commits into from
Nov 20, 2023

Conversation

lugehorsam
Copy link
Contributor

@lugehorsam lugehorsam commented Nov 17, 2023

… the server

The criteria under which we retry is currently too broad.

@zyro I am not sure that we want the client to automatically retry on receiving 500 (Internal Error) from Nakama. Looking through Nakama, it could certainly be a temporary database issue, but it looks like it could be more permanent issues as well. What do you think about not including 500 in the retry criteria?

  • Update Unity Adapter Retry Criteria
  • Decide on 500.
  • New Release!

}
}

return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we intentionally removing -1 from the list of monitored exception status codes here?
Also, I would tend to agree that we probably don't want to retry on an Internal Server Error as it's likely that more often than not the same error will occur if nothing about the request has changed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes that's intentional. Originally I think I spoke with @novabyte about checking for that value if we don't receive a reply from the load balancer, but looking at the client code, the client timeout won't create an ApiResponseException.

@lugehorsam lugehorsam merged commit 9d4b7c3 into master Nov 20, 2023
1 of 2 checks passed
@lugehorsam lugehorsam deleted the luke/retry-logic-improvements branch November 20, 2023 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants