-
Notifications
You must be signed in to change notification settings - Fork 975
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
Tracing incorrect when command execute timeout #1901
Comments
I wonder why the completion |
When the synchronous call, it execute the AsyncCommand cancel method. but the tracing command registered CommandWrapper's onComplete() method. it's not the same one. |
And another problem is how to tracing user's async call such as
do we have to call cancel() method explicitly? any better suggestion, thanks!
|
Imperative programming ( |
I think using command callback delegation, attaching the callbacks to the inner-most command ( |
…1901 Lettuce now attempts to attach command callbacks to the delegate when the delegate is a CompleteableCommand to ensure callbacks are fired if the delegate is being cancelled or completed externally instead through the wrapper.
…1901 Lettuce now attempts to attach command callbacks to the delegate when the delegate is a CompleteableCommand to ensure callbacks are fired if the delegate is being cancelled or completed externally instead through the wrapper.
…1901 Lettuce now attempts to attach command callbacks to the delegate when the delegate is a CompleteableCommand to ensure callbacks are fired if the delegate is being cancelled or completed externally instead through the wrapper.
That's fixed now. |
Bug Report
Current Behavior
Here is the way to reproduce:
Running Input Code blew , because I set “.withTimeout(Duration.ofMillis(10))” , it runs into AsyncCommand
when command execute cancel method, callback set in default BraveTracing does not been executed.
The code above will execute when netty channel read data. but this command already timeout.
Input Code
Input Code
Expected behavior/code
Environment
Possible Solution
add command callback in CommandWrapper
ignore finished command in CommandHandler line 642.
if command is done(cancelled), skip complete command.
Additional context
The text was updated successfully, but these errors were encountered: