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

Add compatible adapter module for Apache Dubbo 2.7.x and above #619

Merged
merged 2 commits into from
Mar 27, 2019

Conversation

sczyh30
Copy link
Member

@sczyh30 sczyh30 commented Mar 27, 2019

Describe what this PR does / why we need it

Since Apache Dubbo 2.7.0, the package com.alibaba.dubbo has been transferred to org.apache.dubbo, which is not compatible with old version. Though Dubbo kept some legacy interfaces, there are still compatibility problems. For Sentinel Dubbo adapter, we have to keep compatible with both Dubbo 2.7.x and previous versions, so I added an additional module sentinel-apache-dubbo-adapter that only works for the new versions of Apache Dubbo.

Does this pull request fix one issue?

Fixes #496

Describe how you did it

Add a new additional module sentinel-apache-dubbo-adapter that only works for the new versions of Apache Dubbo. Legacy adapter is kept for Dubbo 2.6.x version.

Describe how to verify it

Run the test cases and demo.

Special notes for reviews

NONE

- copied legacy code and adapts to new package
- also update document for legacy Dubbo adapter

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
…sion

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
@sczyh30 sczyh30 added the to-review To review label Mar 27, 2019
@sczyh30 sczyh30 added this to the 1.5.1 milestone Mar 27, 2019
@codecov-io
Copy link

codecov-io commented Mar 27, 2019

Codecov Report

Merging #619 into master will increase coverage by 0.24%.
The diff coverage is 65.88%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #619      +/-   ##
============================================
+ Coverage     40.31%   40.55%   +0.24%     
- Complexity     1288     1305      +17     
============================================
  Files           278      284       +6     
  Lines          8831     8916      +85     
  Branches       1183     1192       +9     
============================================
+ Hits           3560     3616      +56     
- Misses         4811     4833      +22     
- Partials        460      467       +7
Impacted Files Coverage Δ Complexity Δ
...l/adapter/dubbo/fallback/DefaultDubboFallback.java 100% <100%> (ø) 2 <2> (?)
.../sentinel/adapter/dubbo/DubboAppContextFilter.java 100% <100%> (ø) 3 <3> (?)
...nel/adapter/dubbo/SentinelDubboConsumerFilter.java 50% <50%> (ø) 2 <2> (?)
...nel/adapter/dubbo/SentinelDubboProviderFilter.java 57.14% <57.14%> (ø) 2 <2> (?)
.../adapter/dubbo/fallback/DubboFallbackRegistry.java 60% <60%> (ø) 3 <3> (?)
...alibaba/csp/sentinel/adapter/dubbo/DubboUtils.java 93.75% <93.75%> (ø) 5 <5> (?)
... and 2 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 d5204bb...2afd6aa. Read the comment docs.

Copy link
Contributor

@CarpenterLee CarpenterLee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

Sentinel Dubbo adapter is not compatible with Dubbo 2.7.x
3 participants