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

codec(ticdc): simple decoder set the table id on handle key only event and make consumer more strict on the ts order #11089

Merged
merged 8 commits into from
May 17, 2024

Conversation

3AceShowHand
Copy link
Contributor

@3AceShowHand 3AceShowHand commented May 14, 2024

What problem does this PR solve?

Issue Number: close #11088

What is changed and how it works?

  • set the table id when decode the handle key only event
  • consumer panics if commit-ts less than the resolved ts
  • update resolved ts after receive resolved ts event and ddl event.

Check List

Tests

  • Integration 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 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. labels May 14, 2024
Copy link

codecov bot commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.5995%. Comparing base (687b21d) to head (88ec7b1).
Report is 11 commits behind head on master.

Additional details and impacted files
Components Coverage Δ
cdc 61.9892% <100.0000%> (+0.1387%) ⬆️
dm 51.3197% <ø> (+0.1068%) ⬆️
engine 63.4373% <ø> (+0.0282%) ⬆️
Flag Coverage Δ
unit 57.5995% <100.0000%> (+0.1209%) ⬆️

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

@@               Coverage Diff                @@
##             master     #11089        +/-   ##
================================================
+ Coverage   57.4786%   57.5995%   +0.1209%     
================================================
  Files           851        854         +3     
  Lines        125511     126145       +634     
================================================
+ Hits          72142      72659       +517     
- Misses        47998      48100       +102     
- Partials       5371       5386        +15     

@3AceShowHand
Copy link
Contributor Author

/retest

@ti-chi-bot ti-chi-bot bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 15, 2024
@3AceShowHand 3AceShowHand changed the title codec(ticdc): simple decoder set the table id on handle key only event codec(ticdc): simple decoder set the table id on handle key only event and make consumer more strict on the ts order May 15, 2024
@3AceShowHand
Copy link
Contributor Author

/test dm-integration-test

@3AceShowHand
Copy link
Contributor Author

/retest

@3AceShowHand
Copy link
Contributor Author

/test dm-integration-test

@3AceShowHand
Copy link
Contributor Author

/retest

Copy link
Contributor

ti-chi-bot bot commented May 16, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

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,asddongmen]

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

Copy link
Contributor

ti-chi-bot bot commented May 16, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-05-16 06:35:34.926052584 +0000 UTC m=+1721488.683188151: ☑️ agreed by CharlesCheung96.
  • 2024-05-16 13:06:46.138806129 +0000 UTC m=+1744959.895941701: ☑️ agreed by asddongmen.

@3AceShowHand
Copy link
Contributor Author

/retest

@ti-chi-bot ti-chi-bot bot merged commit f760b26 into pingcap:master May 17, 2024
27 of 28 checks passed
3AceShowHand added a commit to 3AceShowHand/tiflow that referenced this pull request May 20, 2024
…nly event and make consumer more strict on the ts order (pingcap#11089)"

This reverts commit f760b26.
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flaky test: simple protocol handle key only may failed
3 participants