-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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 tablemeta refresh after closed #7044
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #7044 +/- ##
============================================
- Coverage 52.77% 52.75% -0.02%
- Complexity 6639 6640 +1
============================================
Files 1126 1126
Lines 40107 40122 +15
Branches 4697 4700 +3
============================================
+ Hits 21167 21168 +1
- Misses 16928 16944 +16
+ Partials 2012 2010 -2
|
* @param ex the SQLException to check | ||
* @return true if the exception indicates the data source is closed; false otherwise | ||
*/ | ||
private boolean isDataSourceClosedException(SQLException ex) { |
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.
If it's just the connection being closed, can the two be distinguished?
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.
use sqlState 08006 and exception message keywords to distinguish
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
The default value of the property
client.rm.tableMetaCheckEnable
should be changed tofalse
to align with the behavior of Seata Client 2.1.0 and earlier #7042Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews