Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

task_checker: don't auto-resume for wrong datetime value #977

Merged
merged 2 commits into from
Sep 3, 2020

Conversation

lance6716
Copy link
Collaborator

@lance6716 lance6716 commented Sep 2, 2020

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

  • hard to find a MariaDB 10.0, can't imitate using newer MariaDB and mysql56_temporal_format = OFF

Code changes

Side effects

Related changes

  • Need to cherry-pick to the release branch

@lance6716 lance6716 added priority/unimportant Really minor change, requires approval from secondary reviewers status/PTAL This PR is ready for review. Add this label back after committing new changes type/bug-fix Bug fix labels Sep 2, 2020
@@ -37,6 +37,7 @@ var (
UnsupportedDMLMsgs = []string{
"Error 1062: Duplicate entry",
"Error 1406: Data too long for column",
"Error 1366: Incorrect datetime value",
Copy link
Member

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.

Copy link
Collaborator Author

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

https://github.com/pingcap/tidb/blob/0fd81a83e8a0f0c799e006b0be03205533ca2750/executor/insert_common.go#L287

seems in fact most errors could not resolved by retry 🤔

Copy link
Member

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, 😢

Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@csuzhangxc csuzhangxc added status/LGT1 One reviewer already commented LGTM and removed status/PTAL This PR is ready for review. Add this label back after committing new changes labels Sep 2, 2020
@csuzhangxc csuzhangxc added this to the v2.0.0 RC.3 milestone Sep 2, 2020
Copy link
Collaborator

@GMHDBJD GMHDBJD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GMHDBJD GMHDBJD added the needs-cherry-pick-release-2.0 This PR should be cherry-picked to release-2.0. Remove this label after cherry-picked to release-2.0 label Sep 3, 2020
@lance6716 lance6716 added status/LGT2 Two reviewers already commented LGTM, ready for merge and removed status/LGT1 One reviewer already commented LGTM labels Sep 3, 2020
@lance6716 lance6716 merged commit 3c0f21c into pingcap:master Sep 3, 2020
@ti-srebot
Copy link

cherry pick to release-2.0 in PR #979

@lance6716 lance6716 deleted the fix921 branch September 3, 2020 01:58
@ti-srebot ti-srebot added already-cherry-pick-2.0 The related PR is already cherry-picked to release-2.0. Add this label once the PR is cherry-picked and removed needs-cherry-pick-release-2.0 This PR should be cherry-picked to release-2.0. Remove this label after cherry-picked to release-2.0 labels Sep 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
already-cherry-pick-2.0 The related PR is already cherry-picked to release-2.0. Add this label once the PR is cherry-picked priority/unimportant Really minor change, requires approval from secondary reviewers status/LGT2 Two reviewers already commented LGTM, ready for merge type/bug-fix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

do not auto resume for "Error 1366" error
4 participants