Repository navigation
sink: add debezium-avro protocol (#5475) - #6940
ti-chi-bot wants to merge 2 commits into
Conversation
Signed-off-by: ti-chi-bot <ci@pingcap.com>
|
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. |
|
@wk989898 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. |
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
PR pingcap#5809 already backported pingcap#5475 to release-8.5. The second automated cherry-pick only added unresolved conflict blocks. Restore the release branch content to retain the backport and its follow-up changes.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: wk989898 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 |
|
Cherry-pick conflicts appear resolved; removing the |
This is an automated cherry-pick of #5475
What problem does this PR solve?
Issue Number: close #5476
What is changed and how it works?
This PR introduces a new Kafka sink protocol:
protocol=debezium-avro.The new protocol is intended for users who need both:
Before this change, TiCDC had two separate protocols that each solved only
one side of the requirement:
protocol=debeziumemits Debezium-style key/value messages, but themessages are JSON and the schema is embedded in each message.
protocol=avroemits Confluent Avro messages and registers schemas inSchema Registry, but the payload is TiCDC's flat row format rather than a
Debezium Envelope.
protocol=debezium-avrocombines these two capabilities. It reuses theDebezium codec's event model and field extraction logic, and reuses the
existing Avro Schema Registry registration and Confluent wire-format flow.
Users can enable it with a sink URI like:
Protocol and configuration
This PR adds ProtocolDebeziumAvro to the sink protocol enum and protocol
parser, so protocol=debezium-avro can be used in Kafka sink URIs and
changefeed configs.
The protocol is treated as an Avro-like protocol where needed, including:
For the MVP, Debezium Avro supports Confluent Schema Registry through
schema-registry and AWS Glue Schema Registry.
The protocol also keeps the existing Avro type-mode options where
applicable:
Check List
Tests
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
Summary by CodeRabbit
start_tsfield remains controlled by its configuration.