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

sinkv2(ticdc): add interfaces #6017

Merged
merged 13 commits into from
Jun 27, 2022

Conversation

Rustin170506
Copy link
Member

@Rustin170506 Rustin170506 commented Jun 23, 2022

What problem does this PR solve?

Issue Number: ref #5928

What is changed and how it works?

  • Add interfaces

Check List

Tests

No need

Questions

Will it cause performance regression or break compatibility?

No

Do you need to update user documentation, design documentation or monitoring documentation?

No

Release note

None

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Jun 23, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • asddongmen
  • nongfushanquan

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

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

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added 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 Jun 23, 2022
Copy link
Contributor

@lonng lonng left a comment

Choose a reason for hiding this comment

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

Please remove the following files:

cdc/sinkv2/ddlsink/mq/.keep
cdc/sinkv2/ddlsink/mysql/.keep

cdc/sinkv2/event/event.go Outdated Show resolved Hide resolved
return
}
resolvedEvents := e.eventBuffer[:i]

Copy link
Contributor

Choose a reason for hiding this comment

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

what is the relationship between the event and the txnevent?

Copy link
Member Author

Choose a reason for hiding this comment

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

event can be txnevent or rowchangeevent

Copy link
Member Author

Choose a reason for hiding this comment

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

// Assert TableSink implementation
var _ TableSink = (*eventTableSink[*model.RowChangedEvent])(nil)
var _ TableSink = (*eventTableSink[*model.SingleTableTxn])(nil)

@Rustin170506
Copy link
Member Author

Please remove the following files:

cdc/sinkv2/ddlsink/mq/.keep
cdc/sinkv2/ddlsink/mysql/.keep

Want to rely on these files to agree on package directories.

@Rustin170506 Rustin170506 force-pushed the rustin-patch-sinkv2-generic branch from 60f9efc to 25b13bd Compare June 24, 2022 02:35
@Rustin170506 Rustin170506 added component/sink Sink component. area/ticdc Issues or PRs related to TiCDC. labels Jun 24, 2022
@Rustin170506 Rustin170506 force-pushed the rustin-patch-sinkv2-generic branch from 29ae08c to 9bad97e Compare June 24, 2022 02:50
@codecov-commenter
Copy link

codecov-commenter commented Jun 24, 2022

Codecov Report

Merging #6017 (f58d752) into master (b1ce2c9) will increase coverage by 0.3382%.
The diff coverage is 66.4124%.

Flag Coverage Δ
cdc 62.9696% <69.8265%> (+0.5927%) ⬆️
dm 51.9405% <35.5555%> (-0.0325%) ⬇️
engine 62.3076% <35.6756%> (-0.1329%) ⬇️

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

@@               Coverage Diff                @@
##             master      #6017        +/-   ##
================================================
+ Coverage   57.2815%   57.6198%   +0.3382%     
================================================
  Files           680        696        +16     
  Lines         80230      82515      +2285     
================================================
+ Hits          45957      47545      +1588     
- Misses        30009      30634       +625     
- Partials       4264       4336        +72     

@asddongmen asddongmen self-requested a review June 24, 2022 03:30
Copy link
Member Author

@Rustin170506 Rustin170506 left a comment

Choose a reason for hiding this comment

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

self check

@Rustin170506 Rustin170506 changed the title sinkv2(ticdc): add interfaces [generic version] sinkv2(ticdc): add interfaces Jun 25, 2022
@Rustin170506 Rustin170506 force-pushed the rustin-patch-sinkv2-generic branch from ff0bf0d to f109449 Compare June 26, 2022 08:35
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jun 27, 2022
@Rustin170506 Rustin170506 requested review from hicqu and lonng June 27, 2022 06:18
@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jun 27, 2022
@hicqu
Copy link
Contributor

hicqu commented Jun 27, 2022

/LGTM

@Rustin170506
Copy link
Member Author

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 7695a55

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jun 27, 2022
Copy link
Member Author

@Rustin170506 Rustin170506 left a comment

Choose a reason for hiding this comment

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

Self check

@Rustin170506
Copy link
Member Author

/run-dm-integration-test

@ti-chi-bot
Copy link
Member

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

At the same time I will also trigger all tests for you:

/run-all-tests

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.

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.

@Rustin170506
Copy link
Member Author

/run-dm-integration-test

@ti-chi-bot ti-chi-bot merged commit e4bab46 into pingcap:master Jun 27, 2022
@Rustin170506 Rustin170506 deleted the rustin-patch-sinkv2-generic branch June 27, 2022 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ticdc Issues or PRs related to TiCDC. component/sink Sink component. 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. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants