Skip to content
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

[Dubbo-889-Attachments] support implicit delivery of attachments from provider to consumer #1442

Closed
wants to merge 4 commits into from
Closed

Conversation

chickenlj
Copy link
Contributor

What is the purpose of the change

Fixes #889, support implicit delivery of attachments from provider to consumer

Brief changelog

Not completely finished yet.

Verifying this change

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a GITHUB_issue filed 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. 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.
  • Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

@codecov-io
Copy link

Codecov Report

Merging #1442 into master will increase coverage by <.01%.
The diff coverage is 47.28%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1442      +/-   ##
==========================================
+ Coverage   31.57%   31.58%   +<.01%     
==========================================
  Files         682      682              
  Lines       33035    33099      +64     
  Branches     6592     6604      +12     
==========================================
+ Hits        10432    10454      +22     
- Misses      20750    20785      +35     
- Partials     1853     1860       +7
Impacted Files Coverage Δ
.../main/java/com/alibaba/dubbo/common/Constants.java 88.88% <ø> (ø) ⬆️
...ba/com/caucho/hessian/io/AbstractHessianInput.java 7.69% <ø> (ø) ⬆️
...ibaba/com/caucho/hessian/io/SerializerFactory.java 61.2% <ø> (ø) ⬆️
...m/alibaba/com/caucho/hessian/io/Hessian2Input.java 17.94% <0%> (ø) ⬆️
...cluster/loadbalance/ConsistentHashLoadBalance.java 0% <0%> (ø) ⬆️
.../com/caucho/hessian/io/CollectionDeserializer.java 32.6% <0%> (ø) ⬆️
...exchange/support/header/HeaderExchangeChannel.java 12.08% <0%> (ø) ⬆️
...onfig/spring/schema/DubboBeanDefinitionParser.java 21.07% <0%> (ø) ⬆️
...a/dubbo/remoting/exchange/codec/ExchangeCodec.java 63.55% <100%> (-1.22%) ⬇️
...libaba/dubbo/rpc/filter/ConsumerContextFilter.java 84.61% <100%> (+2.79%) ⬆️
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1f22f56...7dbd92b. Read the comment docs.

@axibx
Copy link

axibx commented Mar 16, 2018

我认为这个commit存在bug,
DubboCodec.encodeResponseData方法在执行结果编码时,不应该依赖provide的version,
我觉得应该根据client请求的version,决定是否需要返回Attachments,否则会存在兼容性问题。

@Authorlove
Copy link
Contributor

thumbs up

@chickenlj
Copy link
Contributor Author

chickenlj commented Mar 18, 2018 via email

@axibx
Copy link

axibx commented Mar 19, 2018

没毛病,是我看漏了
encodeResponseData(channel, out, res.getResult(), res.getVersion());
thumbs up

@nzomkxia
Copy link
Member

can you commit a test case for the change?

@chickenlj
Copy link
Contributor Author

I will resolve the conflicts, add some test cases.

@chickenlj
Copy link
Contributor Author

Sorry, some problem with the personal remote repository, i will submit a new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dubbo provider怎么传递消息给consumer
5 participants