-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add BUSY_TRY
to EmitFailureHandler?
#2883
Comments
Hi @hepin1989, would you like to either specify the behavior a bit more (I'm assuming you've already coded an adhoc I would make that a static factory method rather than a singleton, in order to have some state to avoid infinite looping (either by having a loop counter and a max number of iterations, or a nanoseconds |
@simonbasle. I would like to take this issue. |
nice ! Please start from the |
@simonbasle Can you please elaborate the issue ?. |
Background and
|
This commit adds OptimisticEmitFailureHandler, a flavor of handler that retries on FAIL_NON_SERIALIZED codes up to a deadline (configured via a timeout Duration provided at construction of each instance). This is publicly exposed as EmitFailureHandler.busyLoop factory method. Fixes #2883. Co-authored-by: Simon Baslé <sbasle@vmware.com>
Hello, everyone! |
@ivyazmitinov yes, this is a public method of a public class, which means it is supported. You need to understand the caveats, and if they don't match your need it is not terribly hard to write your own. See also our deprecation policy |
@simonbasle, great, thanks! |
aside with
FAIL_FAST
.The text was updated successfully, but these errors were encountered: