Repository navigation
kafka: add more unit test (#5969) - #6529
ti-chi-bot wants to merge 1 commit into
Conversation
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
This cherry pick PR is for a release branch and has not yet been approved by triage owners. To merge this cherry pick:
DetailsInstructions 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-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@3AceShowHand This PR has conflicts, I have hold it. |
|
@ti-chi-bot: ## If you want to know how to resolve it, please read the guide in TiDB Dev Guide. DetailsInstructions 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. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closed by #6405. Consolidating these prerequisite backports into one PR. |
This is an automated cherry-pick of #5969
What problem does this PR solve?
Issue Number: close #5886
Kafka Sink tests do not precisely cover construction and cleanup, DML delivery,
DDL dispatch, or checkpoint fan-out. Regressions in routing, partition
selection, error propagation, and resource cleanup can therefore go
undetected.
The Sink test baseline must depend only on TiCDC-owned interfaces and remain
independent of Sarama and franz-go adapter details.
What is changed and how it works?
checkpoint handling.
context cancellation, and unchanged error propagation.
TopicManagerinterface and add it to themock generation flow.
Sarama or franz-go types.
Test coverage
Coverage was measured on the PR merge-base
e1537bf21and PR head9f0599cb0with the same command:
go test --tags=intest -count=1 -covermode=atomic \ -coverprofile=coverage.out ./downstreamadapter/sink/kafkasink.goThe additional
sink.gocoverage exercises 54 previously uncovered statementsacross Sink construction and cleanup, DML routing and delivery, DDL dispatch,
checkpoint fan-out, cancellation, and error propagation.
Check List
Tests
Questions
Will it cause performance regression or break compatibility?
No. This PR only adds and strengthens unit tests.
Do you need to update user documentation, design documentation or monitoring documentation?
No.
Release note
Summary by CodeRabbit
Tests
Chores