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

kv (ticdc): Improve the codebase of kvClient. #10585

Merged
merged 7 commits into from
Feb 8, 2024

Conversation

asddongmen
Copy link
Contributor

@asddongmen asddongmen commented Feb 4, 2024

What problem does this PR solve?

Issue Number: ref #10584

What is changed and how it works?

  • Move stream related filed into eventFeedStream struct to make the code more clear.
  • Reduce a lock usage by make sure the storeStreamsCache can only be accessed in one goroutine.

Check List

Tests

  • 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

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. affect-ticdc-config-docs Pull requests that affect TiCDC configuration docs. labels Feb 4, 2024
@asddongmen asddongmen removed the affect-ticdc-config-docs Pull requests that affect TiCDC configuration docs. label Feb 4, 2024
@ti-chi-bot ti-chi-bot bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Feb 4, 2024
@asddongmen
Copy link
Contributor Author

It is no need to merge this PR into master branch.

@asddongmen asddongmen closed this Feb 6, 2024
@asddongmen asddongmen reopened this Feb 6, 2024
@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-linked-issue affect-ticdc-config-docs Pull requests that affect TiCDC configuration docs. and removed do-not-merge/needs-linked-issue labels Feb 6, 2024
asddongmen added a commit to ti-chi-bot/tiflow that referenced this pull request Feb 7, 2024
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Feb 7, 2024
@asddongmen
Copy link
Contributor Author

/retest

Copy link

codecov bot commented Feb 8, 2024

Codecov Report

Merging #10585 (3705923) into master (13eb7a3) will increase coverage by 0.1672%.
Report is 5 commits behind head on master.
The diff coverage is 77.6923%.

Additional details and impacted files
Components Coverage Δ
cdc 62.2663% <77.6923%> (+0.2733%) ⬆️
dm 51.2922% <ø> (+0.0445%) ⬆️
engine 63.4282% <ø> (+0.0353%) ⬆️
Flag Coverage Δ
unit 57.7515% <77.6923%> (+0.1672%) ⬆️

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

@@               Coverage Diff                @@
##             master     #10585        +/-   ##
================================================
+ Coverage   57.5843%   57.7515%   +0.1672%     
================================================
  Files           849        849                
  Lines        125984     126355       +371     
================================================
+ Hits          72547      72972       +425     
+ Misses        48007      47951        -56     
- Partials       5430       5432         +2     

Copy link
Contributor

ti-chi-bot bot commented Feb 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CharlesCheung96, sdojjy

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:
  • OWNERS [CharlesCheung96,sdojjy]

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 added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Feb 8, 2024
Copy link
Contributor

ti-chi-bot bot commented Feb 8, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-02-07 08:16:42.661061834 +0000 UTC m=+344728.227831739: ☑️ agreed by sdojjy.
  • 2024-02-08 03:00:01.772924131 +0000 UTC m=+412127.339694021: ☑️ agreed by CharlesCheung96.

@asddongmen
Copy link
Contributor Author

/retest

3 similar comments
@asddongmen
Copy link
Contributor Author

/retest

@asddongmen
Copy link
Contributor Author

/retest

@asddongmen
Copy link
Contributor Author

/retest

@ti-chi-bot ti-chi-bot bot merged commit a609ffc into pingcap:master Feb 8, 2024
28 checks passed
@ti-chi-bot ti-chi-bot added the needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. label Feb 18, 2024
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-7.5: #10608.

ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Feb 18, 2024
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot ti-chi-bot added the needs-cherry-pick-release-7.1 Should cherry pick this PR to release-7.1 branch. label Feb 20, 2024
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-7.1: #10625.

ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Feb 20, 2024
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot ti-chi-bot added needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. and removed needs-cherry-pick-release-7.1 Should cherry pick this PR to release-7.1 branch. labels Feb 28, 2024
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-6.5: #10674.

ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Feb 29, 2024
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot ti-chi-bot removed the needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. label Mar 30, 2024
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 needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants