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

bugfix: fix can't refresh table meta data for oracle #1720

Merged
merged 17 commits into from
Oct 8, 2019

Conversation

l81893521
Copy link
Contributor

@l81893521 l81893521 commented Sep 27, 2019

Ⅰ. Describe what this PR did

fix can not refresh table meta data for oracle

Ⅱ. Does this pull request fix one issue?

#1719 #1714

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

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov-io
Copy link

codecov-io commented Sep 27, 2019

Codecov Report

Merging #1720 into develop will increase coverage by 1.21%.
The diff coverage is 16%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #1720      +/-   ##
=============================================
+ Coverage      46.99%   48.21%   +1.21%     
- Complexity      1787     1841      +54     
=============================================
  Files            365      365              
  Lines          13298    13276      -22     
  Branches        1644     1639       -5     
=============================================
+ Hits            6250     6401     +151     
+ Misses          6369     6215     -154     
+ Partials         679      660      -19
Impacted Files Coverage Δ Complexity Δ
...seata/rm/datasource/sql/struct/TableMetaCache.java 87.28% <ø> (+31.31%) 18 <0> (+4) ⬆️
...rm/datasource/sql/struct/TableMetaCacheOracle.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...n/java/io/seata/rm/datasource/DataSourceProxy.java 66.66% <50%> (-3.34%) 10 <2> (+1)
...a/io/seata/rm/datasource/sql/struct/IndexType.java 100% <0%> (+30.76%) 6% <0%> (+3%) ⬆️
.../io/seata/rm/datasource/sql/struct/ColumnMeta.java 100% <0%> (+33.33%) 59% <0%> (+12%) ⬆️
...a/io/seata/rm/datasource/sql/struct/IndexMeta.java 100% <0%> (+35.48%) 33% <0%> (+9%) ⬆️
...a/io/seata/rm/datasource/sql/struct/TableMeta.java 97.14% <0%> (+65.71%) 42% <0%> (+25%) ⬆️

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 1c2fdc5...2c527c0. Read the comment docs.

Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

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

I left some comments.

@jsbxyyx
Copy link
Member

jsbxyyx commented Oct 8, 2019

please remove TableMetaCache#resultSetMetaToSchema(java.sql.ResultSet rs2, AbstractConnectionProxy conn, String tableName)

the method is never used.

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.

LGTM

@slievrly
Copy link
Member

slievrly commented Oct 8, 2019

It is recommended to abstract the public methods of TableMetaCache and TableMetaCacheOracle to a base class BaseTableMetaCache.

Copy link
Member

@xingfudeshi xingfudeshi 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 self-requested a review October 8, 2019 07:05
…ble_meta_oracle

# Conflicts:
#	rm-datasource/src/main/java/io/seata/rm/datasource/DataSourceProxy.java
@l81893521
Copy link
Contributor Author

please remove TableMetaCache#resultSetMetaToSchema(java.sql.ResultSet rs2, AbstractConnectionProxy conn, String tableName)

the method is never used.

ok

@slievrly slievrly changed the title bugfix: fix can not refresh table meta data for oracle bugfix: fix can't refresh table meta data for oracle Oct 8, 2019
Copy link
Member

@jsbxyyx jsbxyyx left a comment

Choose a reason for hiding this comment

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

LGTM

@slievrly slievrly merged commit c6f4e0d into apache:develop Oct 8, 2019
@l81893521 l81893521 deleted the can_not_refresh_table_meta_oracle branch October 16, 2019 02:25
@wangliang181230 wangliang181230 added this to the 0.9.0 milestone Aug 9, 2021
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

6 participants