-
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: undolog rollback info more than 64MB #6483
Conversation
} else { | ||
kernelVersion = version; | ||
productVersion = version; | ||
try (PreparedStatement preparedStatement = connection.prepareStatement("SHOW VARIABLES"); |
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.
是不是应该弄一个variables的元数据存储的类,否则都放在datasourceproxy里,有点臃肿
Should I get a metadata storage class for variables, otherwise it will be put in datasourceproxy, which is a bit bloated?
rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoLogManager.java
Outdated
Show resolved
Hide resolved
rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoLogManager.java
Outdated
Show resolved
Hide resolved
try (PreparedStatement deletePST = conn.prepareStatement(batchDeleteSql)) { | ||
String batchDeleteSubSql = toBatchDeleteSubUndoLogSql(xidSize, branchIdSize); | ||
try (PreparedStatement deletePST = conn.prepareStatement(batchDeleteSql); | ||
PreparedStatement deleteSubPST = conn.prepareStatement(batchDeleteSubSql)) { |
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.
为什么不在上面的batch delete sql中直接增加删除sub的条件?
Why not add the condition to delete sub directly in the batch delete sql above?
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.
主log和子log的条件不一样
The conditions for the main log and the sub-log are different.
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.
主log和子log的条件不一样
The conditions for the main log and the sub-log are different.
为什么我们不能将其合并成一个sql?虽然条件不一样,可以是or的关系不是吗?
Why can't we merge it into one sql? Although the conditions are different, it can be an or relationship, right?
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.
一个是走索引,一个不走索引的
One is indexed, and the other is not indexed.
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.
ok
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
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
fixes #6451
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews