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

onRunSuccess/onThreadComplete hooks called in timeout flow #510

Closed
mattrjacobs opened this issue Jan 14, 2015 · 3 comments
Closed

onRunSuccess/onThreadComplete hooks called in timeout flow #510

mattrjacobs opened this issue Jan 14, 2015 · 3 comments
Milestone

Comments

@mattrjacobs
Copy link
Contributor

In 1.3.x, under thread isolation, when a HystrixCommand times out, the onRunSuccess/onThreadComplete hooks are invoked by the Hystrix thread eventually, even if the calling thread has already moved through the fallback flow.

In master/1.4, only the onThreadComplete hook is invoked (eventually).

/cc @benjchristensen, @KoltonAndrus What should the semantics be? I'd like to decide that and then enforce it in both 1.3.x and master

@benjchristensen
Copy link
Contributor

I think it should call eventually whenever it does complete. A thread always ends (unless it's an infinite loop).

It is clearer for it to eventually be called than to have cases where it only starts but never "ends". Also I don't want to break 1.3 behavior.

@mattrjacobs
Copy link
Contributor Author

Yeah, that's the way I was leaning, but didn't want to bias your response :) This will be a change in master only then. I'll also add some Javadoc to clarify this case, as it's not obvious.

mattrjacobs pushed a commit to mattrjacobs/Hystrix that referenced this issue Jan 14, 2015
…cutes,

onRunSuccess and onThreadCompelte hooks get invoked even if calling thread times out.
mattrjacobs added a commit that referenced this issue Jan 14, 2015
Added Javadoc after clarifying #510.  When a Hystrix thread executes,
@mattrjacobs
Copy link
Contributor Author

Added Javadoc in #512

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

No branches or pull requests

2 participants