当前位置:网站首页>Debezium系列之:mysql墓碑事件
Debezium系列之:mysql墓碑事件
2022-07-07 21:47:00 【目标博客专家】
Debezium系列之:mysql墓碑事件
一、mysql墓碑事件
- 删除操作由删除事件和随后的墓碑事件表示。
- 只发出一个删除事件。
- 删除源记录后,发出 tombstone 事件(默认行为)允许 Kafka 完全删除与已删除行的键相关的所有事件,以防主题启用日志压缩。
墓碑事件数据格式如下所示,包含主键id但value是空值:
ConsumerRecord(topic=‘debezium-prod-optics-prod_1h.optics_prod.optics_order’, partition=2, offset=3636705, timestamp=1656746091521, timestamp_type=0, key=b’{“schema”:{“type”:“struct”,“fields”:[{“type”:“int32”,“optional”:false,“field”:“order_id”}],“optional”:false,“name”:“debezium_prod_optics_prod_1h.optics_prod.optics_order.Key”},“payload”:{“order_id”:2752094}}', value=None, headers=[], checksum=None, serialized_key_size=223, serialized_value_size=-1, serialized_header_size=-1)
二、debezium参数控制是否产生墓碑事件
- tombstones.on.delete
- 在connector配置中设置此参数,参数为true,删除操作由删除事件和随后的墓碑事件表示。
- 参数为false,只发出一个删除事件。
- 默认为true
边栏推荐
- Revit secondary development - operation family documents
- UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xf9 in position 56: illegal multibyte sequence
- [azure microservice service fabric] start the performance monitor in the SF node and set the method of capturing the process
- Remember an experience of using selectmany
- How to realize the movement control of characters in horizontal game
- Implementation method of data platform landing
- C development -- WPF simple animation
- Revit secondary development - cut view
- Redis官方ORM框架比RedisTemplate更优雅
- Form组件常用校验规则-2(持续更新中~)
猜你喜欢
Antd date component appears in English
C # realizes the communication between Modbus protocol and PLC
Dayu200 experience officer MPPT photovoltaic power generation project dayu200, hi3861, Huawei cloud iotda
Pdf document signature Guide
Redis官方ORM框架比RedisTemplate更优雅
PHP method of obtaining image information
UWA问答精选
[azure microservice service fabric] the service fabric cluster hangs up because the certificate expires (the upgrade cannot be completed, and the node is unavailable)
Ueeditor custom display insert code
Crawler (17) - Interview (2) | crawler interview question bank
随机推荐
Ni9185 and ni9234 hardware settings in Ni Max
[开源] .Net ORM 访问 Firebird 数据库
Unity FAQ (I) lack of references
Revit secondary development - wall opening
. Net automapper use
Get the week start time and week end time of the current date
应用实践 | 数仓体系效率全面提升!同程数科基于 Apache Doris 的数据仓库建设
null == undefined
OpenGL configuration vs2019
使用 BlocConsumer 同时构建响应式组件和监听状态
Blender exchange group, welcome to the water group ~
PKPM 2020软件安装包下载及安装教程
IP network active evaluation system -- x-vision
What is the difference between the three values of null Nan undefined in JS
如何实现横版游戏中角色的移动控制
Microservice Remote debug, nocalhost + rainbond microservice Development second Bomb
Record problems fgui tween animation will be inexplicably killed
ByteDance Android interview, summary of knowledge points + analysis of interview questions
Time convolution Network + soft threshold + attention mechanism to realize residual life prediction of mechanical equipment
The strongest installation of the twin tower model, Google is playing "antique" again?