tiflow icon indicating copy to clipboard operation
tiflow copied to clipboard

cmd (ticdc): a better Kafka consumer

Open wk989898 opened this issue 10 months ago • 34 comments

What problem does this PR solve?

Issue Number: close #10989

What is changed and how it works?

Rewrite Kafka consumer

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Questions

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

Release note

none

wk989898 avatar Apr 26 '24 10:04 wk989898

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign charlescheung96 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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[bot] avatar Apr 26 '24 10:04 ti-chi-bot[bot]

Hi @wk989898. Thanks for your PR.

I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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 kubernetes/test-infra repository.

ti-chi-bot[bot] avatar Apr 26 '24 10:04 ti-chi-bot[bot]

/test all

wk989898 avatar Apr 26 '24 16:04 wk989898

@wk989898: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test all

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 kubernetes/test-infra repository.

ti-chi-bot[bot] avatar Apr 26 '24 16:04 ti-chi-bot[bot]

/ok-to-test

asddongmen avatar Apr 28 '24 01:04 asddongmen

/test cdc-integration-kafka-test

asddongmen avatar Apr 28 '24 01:04 asddongmen

Keep this PR in draft state until it is ready for review and merge. In the meantime, you can use /test cdc-integration-kafka-test to manually trigger the Kafka integration test.

asddongmen avatar Apr 28 '24 01:04 asddongmen

It would be extremely helpful if you could provide a design documentation for this new Kafka consumer. The documentation can includes the drawbacks of the current Kafka consumer, suggestions for improvements, how the new design solves these problems, and why it is better than the old one.

asddongmen avatar Apr 28 '24 01:04 asddongmen

/retest

wk989898 avatar Apr 28 '24 06:04 wk989898

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 57.6276%. Comparing base (e3b0bc7) to head (58f71db). Report is 8 commits behind head on master.

Additional details and impacted files
Components Coverage Δ
cdc 61.4260% <60.9022%> (-0.0527%) :arrow_down:
dm 51.2051% <ø> (+0.0060%) :arrow_up:
engine 63.3738% <ø> (-0.0283%) :arrow_down:
Flag Coverage Δ
unit 57.6276% <ø> (-0.0218%) :arrow_down:

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

@@               Coverage Diff                @@
##             master     #10990        +/-   ##
================================================
- Coverage   57.6493%   57.6276%   -0.0218%     
================================================
  Files           850        850                
  Lines        126095     126264       +169     
================================================
+ Hits          72693      72763        +70     
- Misses        48002      48099        +97     
- Partials       5400       5402         +2     

codecov[bot] avatar Apr 28 '24 07:04 codecov[bot]

/retest

wk989898 avatar Apr 28 '24 09:04 wk989898

/retest

wk989898 avatar Apr 28 '24 11:04 wk989898

/retest

wk989898 avatar Apr 29 '24 08:04 wk989898

/retest

wk989898 avatar Apr 30 '24 11:04 wk989898

/retest

wk989898 avatar Apr 30 '24 12:04 wk989898

/retest

wk989898 avatar Apr 30 '24 15:04 wk989898

/test cdc-integration-kafka-test

wk989898 avatar Apr 30 '24 17:04 wk989898

/retest

wk989898 avatar May 01 '24 09:05 wk989898

/test cdc-integration-kafka-test

wk989898 avatar May 01 '24 09:05 wk989898

/test cdc-integration-kafka-test

wk989898 avatar May 01 '24 11:05 wk989898

/retest

wk989898 avatar May 01 '24 15:05 wk989898

PR needs rebase.

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 kubernetes/test-infra repository.

ti-chi-bot[bot] avatar May 06 '24 11:05 ti-chi-bot[bot]

/retest

wk989898 avatar May 07 '24 10:05 wk989898

/test cdc-integration-kafka-test

wk989898 avatar May 09 '24 02:05 wk989898

/test cdc-integration-kafka-test

wk989898 avatar May 09 '24 12:05 wk989898

/test cdc-integration-kafka-test

wk989898 avatar May 09 '24 13:05 wk989898

/test cdc-integration-kafka-test

wk989898 avatar May 09 '24 15:05 wk989898

/test cdc-integration-kafka-test

wk989898 avatar May 10 '24 02:05 wk989898

/retest

wk989898 avatar May 10 '24 03:05 wk989898

/test cdc-integration-kafka-test

wk989898 avatar May 11 '24 07:05 wk989898

/test cdc-integration-kafka-test

wk989898 avatar May 11 '24 10:05 wk989898