-
Notifications
You must be signed in to change notification settings - Fork 188
task_checker: don't auto-resume for wrong datetime value #977
Conversation
pkg/retry/errors.go
Outdated
@@ -37,6 +37,7 @@ var ( | |||
UnsupportedDMLMsgs = []string{ | |||
"Error 1062: Duplicate entry", | |||
"Error 1406: Data too long for column", | |||
"Error 1366: Incorrect datetime value", |
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.
How about handing other Error 1366
too? maybe you can search TiDB repo (tidb/errno/errcode.go
) to got the meaning of this code.
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.
I guess it's no help keep retrying
seems in fact most errors could not resolved by retry 🤔
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.
seems in fact most errors could not resolved by retry
YES, but we don't know which errors could be resolved by retry, 😢
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.
LGTM
cherry pick to release-2.0 in PR #979 |
What problem does this PR solve?
fix #921
What is changed and how it works?
add this type of error to
UnsupportedDMLMsgs
(can't verify this is the right place)Check List
Tests
Code changes
Side effects
Related changes