You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "maxiaoguang64 (GitHub)" <gi...@apache.org> on 2019/02/28 02:31:20 UTC
[GitHub] [incubator-dubbo] maxiaoguang64 opened issue #3576: async
call not work when use zipkin
dubbo version 2.6.x
zipkin plugin version 5.6.1

result.hasException() will call future.get() to wait result
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3576 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] maxiaoguang64 commented on issue #3576:
async call not work when use zipkin
Posted by "maxiaoguang64 (GitHub)" <gi...@apache.org>.
@chickenlj can i do something?
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3576 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] chickenlj commented on issue #3576: async
call not work when use zipkin
Posted by "chickenlj (GitHub)" <gi...@apache.org>.
> result.hasException() will call future.get() to wait result
Sorry, but I don't understand why `result.hasException` will trigger future.get().
Can you provide the complete code implementation which the above snippet belongs to?
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3576 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] maxiaoguang64 commented on issue #3576:
async call not work when use zipkin
Posted by "maxiaoguang64 (GitHub)" <gi...@apache.org>.
@chickenlj can we disscus this
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3576 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] maxiaoguang64 commented on issue #3576:
async call not work when use zipkin
Posted by "maxiaoguang64 (GitHub)" <gi...@apache.org>.
@chickenlj
i am sorry, i use dubbo 2.7.0-SNAPSHOT.

but 2.7.0-RELEASE already fix it.


Is this necessary?
oneway and async are difference.


call tracing consumer--->provider1--->provider2
use async call
but i can't wait result.
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3576 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] chickenlj commented on issue #3576: async
call not work when use zipkin
Posted by "chickenlj (GitHub)" <gi...@apache.org>.
> but 2.7.0-RELEASE already fix it.
Yes, the bug you reported will be fixed in 2.7.1 release.

> Is this necessary?
You can use `RpcContext.getCompletableFuture()` and add callback to CompletableFuture directly.
And I would recommend you record the Finish Span in `Filter.onResponse`, it works for both sync and async scenario, you do not need to register any callback. Whenever `onResponse` is called, indicates the actual result returns.
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3576 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org