-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: Make column test stable and fix prepare statement issue #2473
Conversation
LGTM |
@@ -561,7 +565,7 @@ func (s *session) DropPreparedStmt(stmtID uint32) error { | |||
if _, ok := vars.PreparedStmts[stmtID]; !ok { | |||
return executor.ErrStmtNotFound | |||
} | |||
delete(vars.PreparedStmts, stmtID) | |||
vars.RetryInfo.DroppedPreparedStmtIDs = append(vars.RetryInfo.DroppedPreparedStmtIDs, stmtID) |
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.
Why not drop statement here?
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.
In retry, ExecutePreparedStmt
will execute with the same stmtID, so we should not dropping the preparedStmts until finished the transaction, dropping it in ClearRetryInfo.
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.
Will we retry prepare statement? Or we only retry execute statement?
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.
We only retry execute statement.
Session.PrepareStmt
do not add statement history.
LGTM |
ddl: make column test stable
*: fix prepare statement issue when retrying