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

use common retry policy builder function #1247

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

symbiogenesis
Copy link
Contributor

@symbiogenesis symbiogenesis commented Sep 11, 2024

In the original code, there was an inconsistency with the retry policy.

The WaitAndRetryForever logic would run when TransactionMode is AllOrNothing in two cases. And would run when not AllOrNothing in the other case.

Also, this means that with a transaction mode of None, this will still do a retry. But, when TransactionMode is None, that seems really destructive to keep trying.

I recommend a consistent policy.

I also recommend to not retry when the mode is None, but to just throw the exception. However, I didn't make that change here. I could do so, if you like the idea.

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.

1 participant