-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
Context loss when async invoke #13666
Comments
@AlbumenJ my dubbo version is 3.2.10 too. there is my new test code: api
provider:
consumer:
when Bootstrap class like that, it prints:
when Bootstrap class like that, it prints error:
it there any error in my code? |
when I test multi times,it also prints
and
it seens that there is some bugs in RpcContext |
3.3.0 beta-1 版本也不行
client:
|
Can you please upgrade the demo to Github as a repo? |
@AlbumenJ sorry, I have trouble pushing my repository to GitHub. i had tried many times, but still fail. you can create a maven project to test it. there is the project maven config :
|
You can send the demo to my mail. ([email protected]) |
the email has been sent to your email address |
Get it. I will test it later. |
@bringwu In your demo, Dubbo process the result before set attachment.
|
Adding sleep can make an asynchronous program behave synchronously, but it can lead to performance issues. I think Dubbo should optimize this problem to allow programs to execute purely asynchronously. |
If you want to use local invoke by default, it would be better to use spring bean directly instead of using Dubbo bean. That performance would be better. |
This is a terrible solution. I can't believe it was proposed by official personnel. I'll figure out a solution on my own. |
to mark for me |
provider service method:
consumer :
provider的方法是异步执行,异步执行完后才能往RpcContext设置回应附加信息,这种情况回应附加信息没法传递到consumer这边
The text was updated successfully, but these errors were encountered: