-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
schedule check table mata #1365
Conversation
rm-datasource/src/main/java/io/seata/rm/datasource/sql/struct/TableMetaCache.java
Outdated
Show resolved
Hide resolved
rm-datasource/src/main/java/io/seata/rm/datasource/DataSourceProxy.java
Outdated
Show resolved
Hide resolved
rm-datasource/src/main/java/io/seata/rm/datasource/sql/struct/TableMetaCache.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
(cherry picked from commit 70c15e0)
…heck_table_mata_regularly
rm-datasource/src/main/java/io/seata/rm/datasource/sql/struct/ColumnMeta.java
Outdated
Show resolved
Hide resolved
rm-datasource/src/main/java/io/seata/rm/datasource/sql/struct/IndexMeta.java
Show resolved
Hide resolved
There was a problem hiding this 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
Finally I found that when the table structure not change but the index meta cardinality will change |
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verification passed.
@l81893521 Cardinality is a statistic. |
Ⅰ. 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