You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If hystrix times out here, the dynamo query will not be cancelled (since the context is not cancelled) and may stay open forever. I had a case recently, where I reached my dynamo read capacity and this query stayed open for > 80 seconds.
It is possible to add my own context cancellation:
Where the passed in context to hystrix.Do is wrapped with context.WithCancel(ctx), passed into the runFunc, and then the cancel func is called when there is an error/timeout.
The text was updated successfully, but these errors were encountered:
Currently, when running
hystrix.Do
orhystrix.Go
, there is no built in context cancellation during a timeout. For example, when making a dynamo query:If hystrix times out here, the dynamo query will not be cancelled (since the context is not cancelled) and may stay open forever. I had a case recently, where I reached my dynamo read capacity and this query stayed open for > 80 seconds.
It is possible to add my own context cancellation:
But I think it should be built into the library:
Where the passed in context to
hystrix.Do
is wrapped withcontext.WithCancel(ctx)
, passed into the runFunc, and then the cancel func is called when there is an error/timeout.The text was updated successfully, but these errors were encountered: