-
Notifications
You must be signed in to change notification settings - Fork 173
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
PartitionTable backoff on errors #247
Comments
@mattburman one question regarding the expected and intended behavior you described in #239: |
so just to clarify: We have a service using We are now writing a wrapper around the goka view/emitter to encapsulate some of these things (retries, prometheus metrics), but using the latest beta version instead. The latest beta version changed so that view.Run would no longer return an error and retry internally. And now #246 adds the backoff interface so we can just provide our previous http://github.com/jpillora/backoff instead of calling Reset and Duration ourselves |
Oh, now I realize how the old behavior was, I wasn't really aware of that. The reasons for the old behavior were historical I guess. Initially we had problems with Kafka connection and needed the services to continue serving requests even if the views were down. So the easy solution was to keep the storage open and retry externally. Sorry for the behavior change, that surely needs some documentation improvement :-/ |
Implemented in #246 |
As noted in #239 (comment) by @mattburman the CatchupForever function just sleeps for some time and retries afterwards if an error occurs. An enhancement for this behavior would be to use an backoff instead and make it even configurable for the user.
I propose a solution for that in #246.
The text was updated successfully, but these errors were encountered: