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

redo (cdc) remove inefficient redoCache to simply the code and reduce maintenance burden #10467

Merged
merged 6 commits into from
Jan 23, 2024

Conversation

zhangjinpeng87
Copy link
Contributor

@zhangjinpeng87 zhangjinpeng87 commented Jan 15, 2024

What problem does this PR solve?

Issue Number: close #10485
There are some drawbacks of redoCache:

  • When the write throughput of a table is small, there is no necessary to use cache to improve the sorter reading
  • When the write throughput of a table is large, the redoCache hit ratio is very low
  • The redoCache occupies extra memory, cause the sink has no enough memory in some cases; further more, in some case like Allow to custom and disable redo event cache #10143 redoCache has some other side effects

What is changed and how it works?

  • Remove redoCache entirely to simplify the code and maintenance burden

Check List

Tests

  • Unit test

Questions

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

Release note

`None`.

@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-linked-issue release-note-none Denotes a PR that doesn't merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jan 15, 2024
@zhangjinpeng87 zhangjinpeng87 changed the title redo (cdc) remove little effect redoCache to simply the code and reduce maintenance burden redo (cdc) remove inefficient redoCache to simply the code and reduce maintenance burden Jan 15, 2024
Signed-off-by: zhangjinpeng87 <[email protected]>
@ti-chi-bot ti-chi-bot bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jan 15, 2024
@asddongmen asddongmen self-requested a review January 15, 2024 07:54
Copy link

codecov bot commented Jan 15, 2024

Codecov Report

Merging #10467 (7910018) into master (ea976f4) will decrease coverage by 0.0868%.
The diff coverage is 84.6153%.

Additional details and impacted files
Components Coverage Δ
cdc 61.6668% <84.6153%> (-0.1399%) ⬇️
dm 51.2133% <ø> (-0.0223%) ⬇️
engine 63.4211% <ø> (ø)
Flag Coverage Δ
unit 57.4125% <84.6153%> (-0.0868%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@@               Coverage Diff                @@
##             master     #10467        +/-   ##
================================================
- Coverage   57.4992%   57.4125%   -0.0868%     
================================================
  Files           849        848         -1     
  Lines        126073     125774       -299     
================================================
- Hits          72491      72210       -281     
+ Misses        48174      48161        -13     
+ Partials       5408       5403         -5     

@zhangjinpeng87
Copy link
Contributor Author

/test cdc-integration-storage-test

@zhangjinpeng87
Copy link
Contributor Author

/test cdc-integration-storage-test

@ti-chi-bot ti-chi-bot bot added the affect-ticdc-config-docs Pull requests that affect TiCDC configuration docs. label Jan 16, 2024
@zhangjinpeng87
Copy link
Contributor Author

/test cdc-integration-storage-test

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Jan 20, 2024
@zhangjinpeng87
Copy link
Contributor Author

/check-issue-triage-complete

@ti-chi-bot ti-chi-bot bot added the lgtm label Jan 22, 2024
Copy link
Contributor

ti-chi-bot bot commented Jan 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: asddongmen, hicqu

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

The pull request process is described here

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 Jan 22, 2024
Copy link
Contributor

ti-chi-bot bot commented Jan 22, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-01-20 01:01:59.580273535 +0000 UTC m=+576961.144571234: ☑️ agreed by asddongmen.
  • 2024-01-22 02:42:51.312490456 +0000 UTC m=+755812.876788153: ☑️ agreed by hicqu.

@zhangjinpeng87
Copy link
Contributor Author

/test cdc-integration-storage-test

@zhangjinpeng87
Copy link
Contributor Author

/test dm-integration-test

@zhangjinpeng87
Copy link
Contributor Author

/test cdc-integration-pulsar-test

@zhangjinpeng87
Copy link
Contributor Author

/retest

1 similar comment
@zhangjinpeng87
Copy link
Contributor Author

/retest

@ti-chi-bot ti-chi-bot bot merged commit 5403026 into pingcap:master Jan 23, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affect-ticdc-config-docs Pull requests that affect TiCDC configuration docs. approved 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.

redoCache is not efficient
3 participants