Skip to content

cdc: re-design delegate and downstream to support partial region subscription better#17274

Merged
ti-chi-bot[bot] merged 9 commits intotikv:masterfrom
hicqu:enhancement-region-partial-subscription
Jul 30, 2024
Merged

cdc: re-design delegate and downstream to support partial region subscription better#17274
ti-chi-bot[bot] merged 9 commits intotikv:masterfrom
hicqu:enhancement-region-partial-subscription

Conversation

@hicqu
Copy link
Contributor

@hicqu hicqu commented Jul 15, 2024

What is changed and how it works?

Issue Number: Close #16362

What's Changed:

  • Refactor Delegate and Downstream to support partial subscription better:
    • incremental scan can be performed on the subscribed range instead of the whole region;
    • if there is a lock in the subscribed region but not in the subscribed range, resolved-ts won't be blocked any more.

This PR reverts #17228 .


Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch

Check List

Tests

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

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Release note

None

Signed-off-by: qupeng <qupeng@pingcap.com>
@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has signed the dco. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jul 15, 2024
@hicqu
Copy link
Contributor Author

hicqu commented Jul 18, 2024

/test

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jul 18, 2024

@hicqu: The /test command needs one or more targets.
The following commands are available to trigger required jobs:

  • /test pull-unit-test

Use /test all to run all jobs.

Details

In response to this:

/test

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 kubernetes/test-infra repository.

@hicqu
Copy link
Contributor Author

hicqu commented Jul 18, 2024

/test pull-unit-test

@hicqu hicqu requested review from overvenus and pingyu July 25, 2024 05:16
Copy link
Contributor

@pingyu pingyu left a comment

Choose a reason for hiding this comment

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

LGTM~

And I think there is an alternatives.

RawKV CDC is actually forked from TiCDC v5.5, but report its own version v1.x.

So maybe we can change the report version of RawKV CDC as v5.x, and TiKV reject any client with version < v4.0.8 (i.e. the BATCH_RESOLVED_TS is not supported). To make life easier.

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Jul 28, 2024
@ti-chi-bot ti-chi-bot bot added the lgtm label Jul 30, 2024
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jul 30, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: overvenus, pingyu

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

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jul 30, 2024
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jul 30, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-07-28 03:17:18.469902539 +0000 UTC m=+66554.749950608: ☑️ agreed by pingyu.
  • 2024-07-30 07:11:45.155846543 +0000 UTC m=+253421.435894612: ☑️ agreed by overvenus.

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jul 30, 2024

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

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.

Details

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 bot merged commit b834dac into tikv:master Jul 30, 2024
@ti-chi-bot ti-chi-bot bot added this to the Pool milestone Jul 30, 2024
@hicqu hicqu deleted the enhancement-region-partial-subscription branch July 30, 2024 08:57
3AceShowHand pushed a commit to 3AceShowHand/tikv that referenced this pull request Aug 5, 2024
…cription better (tikv#17274)

close tikv#16362

Signed-off-by: qupeng <qupeng@pingcap.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TiCDC incremental scans should be limited with required ranges

3 participants