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

storage: make ingest and split_region interface compatible with API v2 #12389

Merged
merged 129 commits into from May 16, 2022

Conversation

iosmanthus
Copy link
Member

@iosmanthus iosmanthus commented Apr 20, 2022

What is changed and how does it work?

  1. Add a ts field for RawWriteBatch if the API version is v2.
  2. Encode the split key if the API version is v2.

Issue Number: ref #10938

What's Changed:

make ingest and split_region interface compatible with API v2.

Related changes

  • Need to cherry-pick the release branch

Check List

Tests

  • Unit test
  • Integration test

Side effects

  • Performance regression
    • Consumes more CPU
    • Consumes more MEM

Release note

storage: make ingest and split_region interface compatible with API v2

pingyu and others added 30 commits February 24, 2022 21:37
Signed-off-by: pingyu <yuping@pingcap.com>
Issue Number: ref tikv#11965

Signed-off-by: pingyu <yuping@pingcap.com>
Signed-off-by: pingyu <yuping@pingcap.com>
Signed-off-by: pingyu <yuping@pingcap.com>
Issue Number: ref tikv#11965

Signed-off-by: pingyu <yuping@pingcap.com>
…usal-ts

Signed-off-by: pingyu <yuping@pingcap.com>
Issue Number: ref tikv#12036

Signed-off-by: pingyu <yuping@pingcap.com>
Issue Number: ref tikv#11965

Signed-off-by: pingyu <yuping@pingcap.com>
Issue Number: ref tikv#11965

Signed-off-by: pingyu <yuping@pingcap.com>
…t-rawkv-cdc-causal-ts

Signed-off-by: pingyu <yuping@pingcap.com>
Signed-off-by: pingyu <yuping@pingcap.com>
Signed-off-by: pingyu <yuping@pingcap.com>
Issue Number: ref tikv#11965

Signed-off-by: pingyu <yuping@pingcap.com>
…usal-ts

Signed-off-by: pingyu <yuping@pingcap.com>
Issue Number: ref tikv#11965

Signed-off-by: pingyu <yuping@pingcap.com>
Signed-off-by: pingyu <yuping@pingcap.com>
Signed-off-by: pingyu <yuping@pingcap.com>
…usal timestamp management.

Issue Number: ref tikv#11965

Signed-off-by: pingyu <yuping@pingcap.com>
…w-get-put

Signed-off-by: pingyu <yuping@pingcap.com>
Signed-off-by: pingyu <yuping@pingcap.com>
Signed-off-by: pingyu <yuping@pingcap.com>
Signed-off-by: pingyu <yuping@pingcap.com>
…w-get-put

Signed-off-by: pingyu <yuping@pingcap.com>
@ti-chi-bot
Copy link
Member

@iosmanthus: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

You only need to trigger /merge once, and 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.

If you have any questions about the PR merge process, please refer to pr process.

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.

@iosmanthus
Copy link
Member Author

/run-all-tests

@iosmanthus
Copy link
Member Author

/run-all-tests

@pingyu
Copy link
Contributor

pingyu commented May 13, 2022

/run-test

@iosmanthus
Copy link
Member Author

/merge

@ti-chi-bot
Copy link
Member

@iosmanthus: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

You only need to trigger /merge once, and 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.

If you have any questions about the PR merge process, please refer to pr process.

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.

@pingyu
Copy link
Contributor

pingyu commented May 13, 2022

/run-test

1 similar comment
@pingyu
Copy link
Contributor

pingyu commented May 13, 2022

/run-test

@pingyu
Copy link
Contributor

pingyu commented May 13, 2022

/run-all-tests

@ti-chi-bot
Copy link
Member

@iosmanthus: 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.

@pingyu
Copy link
Contributor

pingyu commented May 14, 2022

/run-test

2 similar comments
@pingyu
Copy link
Contributor

pingyu commented May 14, 2022

/run-test

@pingyu
Copy link
Contributor

pingyu commented May 14, 2022

/run-test

@pingyu
Copy link
Contributor

pingyu commented May 15, 2022

/run-all-tests

@ti-chi-bot
Copy link
Member

@haojinming: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments.

In response to this:

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.

@ti-chi-bot ti-chi-bot merged commit ec904c1 into tikv:master May 16, 2022
fengou1 pushed a commit to fengou1/tikv that referenced this pull request May 26, 2022
tikv#12389)

ref tikv#10938

make ingest and split_region interface compatible with API v2.

Signed-off-by: pingyu <yuping@pingcap.com>
Signed-off-by: haojinming <jinming.hao@pingcap.com>
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>

Co-authored-by: pingyu <yuping@pingcap.com>
Co-authored-by: Ping Yu <yuping@pingcap.com>
Co-authored-by: Andy Lok <andylokandy@hotmail.com>
Co-authored-by: haojinming <jinming.hao@pingcap.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note size/XL status/can-merge Status: Can merge to base branch status/LGT2 Status: PR - There are already 2 approvals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants