-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Hook execution sequence issue #328
Comments
As per the Javadoc:
Will need to look into that. |
@benjchristensen can you explain please why onComplete is raised before onThreadComplete, whereas onThreadStart is raised after onStart? |
Because |
@benjchristensen please also take a look at |
PR to demo that #327
Hook lifecycle captured during run of tests coming with Hystrix Core (version 1.3.9):
{noformat}
testExecutionHookSuccessfulCommand (execute):
onStart - onThreadStart - onRunStart - onRunSuccess - onComplete - onThreadComplete -
testExecutionHookSuccessfulCommand (queue)
onStart - onThreadStart - onRunStart - onRunSuccess - onComplete - onThreadComplete -
testExecutionHookSuccessfulCommandViaFireAndForget
onStart - onThreadStart - onRunStart - onRunSuccess - onComplete - onThreadComplete -
testExecutionHookSuccessfulCommandWithMultipleGetsOnFuture
onStart - onThreadStart - onRunStart - onRunSuccess - onComplete - onThreadComplete -
testExecutionHookRunFailureWithoutFallback
onStart - onThreadStart - onRunStart - *** simulated failed execution *** - onRunError - onFallbackStart - onFallbackError - onError - onThreadComplete -
testExecutionHookRunFailureWithFallback
onStart - onThreadStart - onRunStart - *** simulated failed execution *** - onRunError - onFallbackStart - onFallbackSuccess - onComplete - onComplete - onThreadComplete -
testExecutionHookRunFailureWithFallbackFailure
onStart - onThreadStart - onRunStart - *** simulated failed execution *** - onRunError - onFallbackStart - onFallbackError - onError - onThreadComplete -
testExecutionHookTimeoutWithoutFallback
onStart - onThreadStart - onRunStart - ***** running - onFallbackStart - onFallbackError - onError - after interruption with extra sleep
onRunSuccess - onThreadComplete -
testExecutionHookTimeoutWithFallback
onStart - onThreadStart - onRunStart - ***** running - onFallbackStart - onFallbackSuccess - onComplete - after interruption with extra sleep - onRunSuccess - onThreadComplete -
testExecutionHookRejectedWithFallback
onStart - onFallbackStart - onFallbackSuccess - onComplete
testExecutionHookShortCircuitedWithFallbackViaQueue
onStart - onFallbackStart - onFallbackError - onError -
testExecutionHookShortCircuitedWithFallbackViaExecute
onStart - onFallbackStart - onFallbackError - onError -
testExecutionHookSuccessfulCommandWithSemaphoreIsolation
onStart - onRunStart - onRunSuccess - onComplete -
testExecutionHookFailureWithSemaphoreIsolation
onStart - onFallbackStart - onFallbackError - onError -
testExecutionHookFailedOnHystrixBadRequestWithSemaphoreIsolation:
onStart - onRunStart - *** simulated failed execution ***onRunError -
{noformat}
The text was updated successfully, but these errors were encountered: