dubbo
dubbo copied to clipboard
fix Context loss when async invoke issue#13666
What is the purpose of the change?
to fix issue #13666 in Dubbo Protocol (still has this issue in Triple)
How
- make it not check whether the map in RpcContextAttachment is empty (cuz it may be changed)
- write the ServerResponseContext in the future callback to make sure the operation to the context has already done
Checklist
- [x] Make sure there is a GitHub_issue field for the change.
- [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
- [x] Write necessary unit-test to verify your logic correction. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
- [x] Make sure gitHub actions can pass. Why the workflow is failing and how to fix it?