Skip to content
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

rfc(dm): add rfc for continuous data validation #6391

Merged
merged 18 commits into from
Jul 26, 2022

Conversation

D3Hunter
Copy link
Contributor

What problem does this PR solve?

Issue Number: ref #4426

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Questions

Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?

Release note

`None`.

@D3Hunter D3Hunter added the area/dm Issues or PRs related to DM. label Jul 21, 2022
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Jul 21, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • buchuitoudegou
  • lance6716

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 21, 2022
@D3Hunter D3Hunter marked this pull request as ready for review July 21, 2022 04:00
@ti-chi-bot ti-chi-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 21, 2022
@D3Hunter
Copy link
Contributor Author

/cc @lance6716 @buchuitoudegou

Copy link
Contributor

@lance6716 lance6716 left a comment

Choose a reason for hiding this comment

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

rest lgtm

dm/docs/RFCS/20220721_continuous_data_validation.md Outdated Show resolved Hide resolved
- TiDB implements floating point data types differently with MySQL, we take it as equal if its absolute difference < 10^-6
- do not support validation for JSON and binary data types

## Detailed Design
Copy link
Contributor

Choose a reason for hiding this comment

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

its name is "Detailed" design, I expect there should also exist "brief" introduction

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's from google doc template

dm/docs/RFCS/20220721_continuous_data_validation.md Outdated Show resolved Hide resolved
dm/docs/RFCS/20220721_continuous_data_validation.md Outdated Show resolved Hide resolved
dm/docs/RFCS/20220721_continuous_data_validation.md Outdated Show resolved Hide resolved
dm/docs/RFCS/20220721_continuous_data_validation.md Outdated Show resolved Hide resolved
dm/docs/RFCS/20220721_continuous_data_validation.md Outdated Show resolved Hide resolved
dm/docs/RFCS/20220721_continuous_data_validation.md Outdated Show resolved Hide resolved
dm/docs/RFCS/20220721_continuous_data_validation.md Outdated Show resolved Hide resolved
dm/docs/RFCS/20220721_continuous_data_validation.md Outdated Show resolved Hide resolved
dm/docs/RFCS/20220721_continuous_data_validation.md Outdated Show resolved Hide resolved
dm/docs/RFCS/20220721_continuous_data_validation.md Outdated Show resolved Hide resolved
dm/docs/RFCS/20220721_continuous_data_validation.md Outdated Show resolved Hide resolved
dm/docs/RFCS/20220721_continuous_data_validation.md Outdated Show resolved Hide resolved
dm/docs/RFCS/20220721_continuous_data_validation.md Outdated Show resolved Hide resolved
dm/docs/RFCS/20220721_continuous_data_validation.md Outdated Show resolved Hide resolved

Validator `worker` will cache `pending row changes` in memory, to avoid potential OOM, we add an self-protect mechaniam. If there's too much `pending row changes` or the overall size of `pending row changes` is too large, validator will be stopped automatically.

## Concepts
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## Concepts
## Glossary

D3Hunter and others added 15 commits July 21, 2022 19:21
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 25, 2022
@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 26, 2022
@D3Hunter
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 5b9b255

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jul 26, 2022
@ti-chi-bot
Copy link
Member

@D3Hunter: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@GMHDBJD
Copy link
Contributor

GMHDBJD commented Jul 26, 2022

/run-dm-integration-test

@ti-chi-bot ti-chi-bot merged commit bd0cc36 into pingcap:master Jul 26, 2022
@D3Hunter D3Hunter deleted the validator-design-doc branch July 26, 2022 04:49
- do not support validation for tasks which enable extend-column
- do not support validation for tasks which enable event filtering by expression
- TiDB implements floating point data types differently with MySQL, we take it as equal if its absolute difference < 10^-6
- do not support validation for JSON and binary data types
Copy link

Choose a reason for hiding this comment

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

is there a workaround for binary data type?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dm Issues or PRs related to DM. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants