Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: ticdc 同步到kafka []byte类型,用java解析是乱码
【TiDB Usage Environment】Production\Test Environment\POC
【TiDB Version】5.3
【Encountered Issue】
When using ticdc to synchronize data with the canal-json protocol, the database field of type byte (binary(32)) appears as garbled text after being parsed by Java.
【Reproduction Path】Operations performed that led to the issue
【Issue Phenomenon and Impact】
【Attachments】
- Relevant logs, configuration files, Grafana monitoring (https://metricstool.pingcap.com/)
- TiUP Cluster Display information
- TiUP Cluster Edit config information
- TiDB-Overview monitoring
- Corresponding module Grafana monitoring (if any, such as BR, TiDB-binlog, TiCDC, etc.)
- Corresponding module logs (including logs from 1 hour before and after the issue)
If the question is related to performance optimization or troubleshooting, please download the script and run it. Please select all and copy-paste the terminal output results for upload.