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

processor(ticdc): Initialize the processor before tick it #10928

Merged
merged 4 commits into from
Apr 22, 2024

Conversation

sdojjy
Copy link
Member

@sdojjy sdojjy commented Apr 18, 2024

What problem does this PR solve?

Issue Number: close #10930

What is changed and how it works?

This PR initiates the processor before ticking it.
These changes can also prevent some data races that occur during processor initialization.

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

@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/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 18, 2024
Copy link

codecov bot commented Apr 18, 2024

Codecov Report

Merging #10928 (03b4b16) into master (0ffc857) will increase coverage by 0.0594%.
Report is 6 commits behind head on master.
The diff coverage is 50.0000%.

Additional details and impacted files
Components Coverage Δ
cdc 61.8264% <50.0000%> (+0.1011%) ⬆️
dm 51.2535% <ø> (+0.0121%) ⬆️
engine 63.4232% <ø> (+0.0141%) ⬆️
Flag Coverage Δ
unit 57.4771% <50.0000%> (+0.0594%) ⬆️

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

@@               Coverage Diff                @@
##             master     #10928        +/-   ##
================================================
+ Coverage   57.4176%   57.4771%   +0.0594%     
================================================
  Files           850        851         +1     
  Lines        125141     125269       +128     
================================================
+ Hits          71853      72001       +148     
+ Misses        47891      47884         -7     
+ Partials       5397       5384        -13     

@sdojjy
Copy link
Member Author

sdojjy commented Apr 18, 2024

/retest

@pingcap pingcap deleted a comment from ti-chi-bot bot Apr 18, 2024
@ti-chi-bot ti-chi-bot bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. do-not-merge/needs-linked-issue labels Apr 19, 2024
@sdojjy
Copy link
Member Author

sdojjy commented Apr 19, 2024

/retest-required

1 similar comment
@sdojjy
Copy link
Member Author

sdojjy commented Apr 19, 2024

/retest-required

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Apr 19, 2024
@ti-chi-bot ti-chi-bot bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 19, 2024
@asddongmen asddongmen changed the title processor(ticdc): handle warning and error after processor is initialized processor(ticdc): Initialize the processor before tick it Apr 19, 2024
@asddongmen
Copy link
Contributor

/test cdc-integration-kafka-test

@sdojjy
Copy link
Member Author

sdojjy commented Apr 20, 2024

/retest-required

@ti-chi-bot ti-chi-bot bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Apr 22, 2024
Copy link
Contributor

ti-chi-bot bot commented Apr 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 3AceShowHand, asddongmen

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 [3AceShowHand,asddongmen]

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

ti-chi-bot bot commented Apr 22, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-04-19 08:05:16.523051708 +0000 UTC m=+584535.634098156: ☑️ agreed by 3AceShowHand.
  • 2024-04-22 07:02:52.582508095 +0000 UTC m=+839991.693554544: ☑️ agreed by asddongmen.

@sdojjy
Copy link
Member Author

sdojjy commented Apr 22, 2024

/retest-required

1 similar comment
@sdojjy
Copy link
Member Author

sdojjy commented Apr 22, 2024

/retest-required

@ti-chi-bot ti-chi-bot bot merged commit fe19cd9 into pingcap:master Apr 22, 2024
24 of 28 checks passed
@sdojjy sdojjy deleted the fix-data-race-in-processor branch April 22, 2024 11:39
sdojjy added a commit to sdojjy/tiflow that referenced this pull request Apr 24, 2024
sdojjy added a commit to sdojjy/tiflow that referenced this pull request Apr 24, 2024
sdojjy added a commit to ti-chi-bot/tiflow that referenced this pull request Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

processor(ticdc): handle warning and error after processor is initialized
4 participants