Closed j2gg0s closed 5 months ago
Can you include any configuration you have for your source/sink applications? It looks to me like the messages have headers, and the globalId of the schema is included in the headers. When that is the case, there should not be a magic byte in the payload. The magic byte is only present when the globalId is encoded in the payload, not when it's included in the headers.
Can you include any configuration you have for your source/sink applications? It looks to me like the messages have headers, and the globalId of the schema is included in the headers. When that is the case, there should not be a magic byte in the payload. The magic byte is only present when the globalId is encoded in the payload, not when it's included in the headers.
@EricWittmann Do we have document for this?
{
"config": {
"connector.class": "io.debezium.connector.mysql.MySqlConnector",
"database.connectionTimeZone": "Asia/Shanghai",
"database.hostname": "***",
"database.password": "***",
"database.port": "3306",
"database.server.id": "5501",
"database.user": "***",
"errors.log.enable": "true",
"errors.retry.timeout": "600000",
"key.converter": "io.apicurio.registry.utils.converter.AvroConverter",
"key.converter.apicurio.registry.auto-register": "true",
"key.converter.apicurio.registry.find-latest": "true",
"key.converter.apicurio.registry.url": "http://apicurio.kafka:8080/apis/registry/v2",
"name": "source-cactus",
"producer.override.max.request.size": "10485760",
"read.only": "true",
"schema.history.internal.kafka.bootstrap.servers": "x01.infra-kafka:9092",
"schema.history.internal.kafka.topic": "kch.cactus",
"schema.name.adjustment.mode": "avro",
"snapshot.mode": "initial",
"table.exclude.list": ".+\\.tp_[0-9]+_.+,.+\\.tpa_[a-zA-Z0-9]+_.+,likes\\..+",
"time.precision.mode": "connect",
"tombstones.on.delete": "false",
"topic.creation.default.cleanup.policy": "compact",
"topic.creation.default.compression.type": "lz4",
"topic.creation.default.partitions": "9",
"topic.creation.default.replication.factor": "1",
"topic.prefix": "kcx.cactus",
"value.converter": "io.apicurio.registry.utils.converter.AvroConverter",
"value.converter.apicurio.registry.auto-register": "true",
"value.converter.apicurio.registry.find-latest": "true",
"value.converter.apicurio.registry.url": "http://apicurio.kafka:8080/apis/registry/v2"
},
"name": "source-cactus",
"tasks": [
{
"connector": "source-cactus",
"task": 0
}
],
"type": "source"
}
Eric is right, with your configuration, the information you're looking for is not encoded. The latest available artifact for that topic name is used, you have more information in the docs.
Closing as stale. If any other information is requested, please, re-open!
Only second message's value start with \x00.
My sink(kafka-connect-jdbc) can consume message correct with apicurio's converter.
This is a bug?