tiflow
tiflow copied to clipboard
frontier(ticdc): fast check if region is split or merged when forwarding resolvedTs
What problem does this PR solve?
Issue Number: close #7281
What is changed and how it works?
using map cached all region spans, when forwarding a span, check if it is split or merged by comparing the span start, span end, and region ID.
server CPU and memory:
profile before:
profile after
Check List
Tests
- Unit test
- Integration test
- Manual test (add detailed scripts or steps below)
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
`None`.
[REVIEW NOTIFICATION]
This pull request has been approved by:
- 3AceShowHand
- asddongmen
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.
/run-all-tests
/run-all-tests
/run-all-tests
/run-all-tests
/run-all-tests
/run-integration-tests /run-verify-test
/run-all-tests
/run-all-tests
/merge
This pull request has been accepted and is ready to merge.
/merge
/run-verify-ci
In response to a cherrypick label: new pull request created: #7303.