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

optimize:refactor of auto proxying of datasource. #2095

Merged
merged 25 commits into from
Jan 15, 2020
Merged

optimize:refactor of auto proxying of datasource. #2095

merged 25 commits into from
Jan 15, 2020

Conversation

xingfudeshi
Copy link
Member

@xingfudeshi xingfudeshi commented Dec 26, 2019

Ⅰ. Describe what this PR did

This PR is totally the refactor of auto proxying of datasource.
Add a new annotation @EnableAutoDataSourceProxy.
User can choose to use CGLIB proxy or JDK proxy.
fix known problems,like
1.final class can't be proxied.
2.com.sun.proxy.$Proxy153 cannot be cast to com.zaxxer.hikari.HikariDataSource
etc.

Ⅱ. Does this pull request fix one issue?

fixex #2083 #2124

Ⅲ. Why don't you add test cases (unit test/integration test)?

I've done integration testing.

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov-io
Copy link

codecov-io commented Dec 26, 2019

Codecov Report

❗ No coverage uploaded for pull request base (develop@27010bc). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #2095   +/-   ##
==========================================
  Coverage           ?   54.41%           
  Complexity         ?     2472           
==========================================
  Files              ?      447           
  Lines              ?    14750           
  Branches           ?     1734           
==========================================
  Hits               ?     8026           
  Misses             ?     5967           
  Partials           ?      757

@slievrly slievrly self-requested a review December 31, 2019 12:39
@zjinlei zjinlei added this to the 1.1.0 milestone Jan 2, 2020
Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

  1. spring framework application with spring.xml with seata-all dependency and @EnableAutoDataSourceProxy(true or false) result is ok.

Copy link
Contributor

@XCXCXCXCX XCXCXCXCX left a comment

Choose a reason for hiding this comment

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

left some comments

Copy link
Contributor

@zjinlei zjinlei left a comment

Choose a reason for hiding this comment

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

LGTM

@xingfudeshi xingfudeshi merged commit 734ee0c into apache:develop Jan 15, 2020
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.

None yet

5 participants