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

schedule check table mata #1365

Merged
merged 34 commits into from
Aug 5, 2019

Conversation

l81893521
Copy link
Contributor

Ⅰ. Describe what this PR did

check the table meta regularly when rm client initialized.

Ⅱ. Does this pull request fix one issue?

#1350

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

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@xingfudeshi xingfudeshi self-requested a review July 30, 2019 06:47
@codecov-io
Copy link

codecov-io commented Jul 30, 2019

Codecov Report

Merging #1365 into develop will increase coverage by 0.12%.
The diff coverage is 43.75%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #1365      +/-   ##
=============================================
+ Coverage      45.87%   45.99%   +0.12%     
- Complexity      1660     1695      +35     
=============================================
  Files            345      345              
  Lines          12360    12486     +126     
  Branches        1562     1597      +35     
=============================================
+ Hits            5670     5743      +73     
- Misses          6057     6091      +34     
- Partials         633      652      +19
Impacted Files Coverage Δ Complexity Δ
...n/java/io/seata/rm/datasource/DataSourceProxy.java 73.33% <100%> (+13.33%) 8 <2> (+2) ⬆️
...a/io/seata/rm/datasource/sql/struct/TableMeta.java 33.33% <35.29%> (+0.74%) 18 <3> (+3) ⬆️
.../io/seata/rm/datasource/sql/struct/ColumnMeta.java 66.66% <39.34%> (-29.77%) 47 <12> (+12)
...a/io/seata/rm/datasource/sql/struct/IndexMeta.java 64.51% <40%> (-22.99%) 24 <6> (+6)
...seata/rm/datasource/sql/struct/TableMetaCache.java 50.62% <60%> (+1.3%) 12 <3> (+3) ⬆️
...very/registry/zk/ZookeeperRegisterServiceImpl.java 64.56% <0%> (+0.78%) 24% <0%> (ø) ⬇️
...io/seata/rm/datasource/AbstractStatementProxy.java 14.75% <0%> (+4.91%) 4% <0%> (+2%) ⬆️
...a/io/seata/rm/datasource/exec/ExecuteTemplate.java 6.89% <0%> (+6.89%) 2% <0%> (+2%) ⬆️
...o/seata/rm/datasource/AbstractConnectionProxy.java 11.9% <0%> (+7.14%) 5% <0%> (+4%) ⬆️
... and 1 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 df7772a...dfcf10d. Read the comment docs.

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.

The test found that when the table structure is not changed, it is judged as not equal

@l81893521
Copy link
Contributor Author

The test found that when the table structure is not changed, it is judged as not equal

Finally I found that when the table structure not change but the index meta cardinality will change

@l81893521
Copy link
Contributor Author

l81893521 commented Aug 1, 2019

The test found that when the table structure is not changed, it is judged as not equal

I will provide some unit test these days.

…heck_table_mata_regularly

# Conflicts:
#	rm-datasource/src/main/java/io/seata/rm/datasource/sql/struct/IndexMeta.java
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.

@slievrly slievrly changed the title Check table mata regularly schedule check table mata Aug 5, 2019
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.

Verification passed.

@slievrly
Copy link
Member

slievrly commented Aug 5, 2019

@l81893521 Cardinality is a statistic.

@slievrly slievrly merged commit d209271 into apache:develop Aug 5, 2019
@l81893521 l81893521 deleted the check_table_mata_regularly branch August 8, 2019 12:43
@wangliang181230 wangliang181230 added this to the 0.8.1 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

5 participants