You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "tswstarplanet (GitHub)" <gi...@apache.org> on 2019/03/14 16:51:10 UTC
[GitHub] [incubator-dubbo] tswstarplanet opened pull request #3664:
[Dubbo-3662]fix ServerContext can not transform data in sync invoke
Make RpcContext's ServerContext can transform data from provider to consumer
## What is the purpose of the change
When user use sync invoke, the RpcContext's ServerContext cannot transform data from provider to consumer.
## Brief changelog
Make ContextFilter remove ServerContext after it copy data from ServerContext to Invocation of the invoke when provider is responding consumer.
## Verifying this change
Have been tested.
Follow this checklist to help us incorporate your contribution quickly and easily:
- [x] Make sure there is a [GITHUB_issue](https://github.com/apache/incubator-dubbo/issues) field for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
- [ ] Format the pull request title like `[Dubbo-XXX] Fix UnknownException when host config not exist #XXX`. Each commit in the pull request should have a meaningful subject line and body.
- [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
- [ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in [test module](https://github.com/apache/incubator-dubbo/tree/master/dubbo-test).
- [ ] Run `mvn clean install -DskipTests=false` & `mvn clean test-compile failsafe:integration-test` to make sure unit-test and integration-test pass.
- [ ] If this contribution is large, please follow the [Software Donation Guide](https://github.com/apache/incubator-dubbo/wiki/Software-donation-guide).
[ Full content available at: https://github.com/apache/incubator-dubbo/pull/3664 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] tswstarplanet closed pull request #3664:
[Dubbo-3662]fix ServerContext can not transform data in sync invoke
Posted by "tswstarplanet (GitHub)" <gi...@apache.org>.
[ pull request closed by tswstarplanet ]
[ Full content available at: https://github.com/apache/incubator-dubbo/pull/3664 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] tswstarplanet commented on pull request
#3664: [Dubbo-3662]fix ServerContext can not transform data in sync invoke
Posted by "tswstarplanet (GitHub)" <gi...@apache.org>.
How about use a local variable to store the async identifier, and in the finally block, we can check if it is a async invoke, the servercontext will be removed. If not, we donnot remove it. Doesn't this impact the asyn invoke ?
[ Full content available at: https://github.com/apache/incubator-dubbo/pull/3664 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] carryxyh commented on pull request #3664:
[Dubbo-3662]fix ServerContext can not transform data in sync invoke
Posted by "carryxyh (GitHub)" <gi...@apache.org>.
Didn't you see this comment?
We must remove the context at the end of the invoke. So I think your pr will cause new problems.
[ Full content available at: https://github.com/apache/incubator-dubbo/pull/3664 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org