当前位置:网站首页>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
边栏推荐
- Unity development --- the mouse controls the camera to move, rotate and zoom
- Revit secondary development - collision detection
- How to write an augmented matrix into TXT file
- Interview question 01.02 Determine whether it is character rearrangement - auxiliary array algorithm
- 23. Merge K ascending linked lists -c language
- Get the exact offset of the element
- Remember aximp once Use of exe tool
- OpenGL job coordinate system
- 新版代挂网站PHP源码+去除授权/支持燃鹅代抽
- Record layoutrebuild Forcerebuildlayoutimmediate does not take effect
猜你喜欢

Use blocconsumer to build responsive components and monitor status at the same time

null == undefined

【Azure微服务 Service Fabric 】在SF节点中开启Performance Monitor及设置抓取进程的方式

Where is the big data open source project, one-stop fully automated full life cycle operation and maintenance steward Chengying (background)?

Vs custom template - take the custom class template as an example

How pyGame rotates pictures

OpenGL configuration vs2019

Use json Stringify() to realize deep copy, be careful, there may be a huge hole
Redis官方ORM框架比RedisTemplate更优雅

vite Unrestricted file system access to
随机推荐
Oracle advanced (VI) Oracle expdp/impdp details
[colmap] sparse reconstruction is converted to mvsnet format input
【Azure微服务 Service Fabric 】在SF节点中开启Performance Monitor及设置抓取进程的方式
微服務遠程Debug,Nocalhost + Rainbond微服務開發第二彈
JS number is insufficient, and 0 is added
Gazebo import the mapping model created by blender
如何选择合适的自动化测试工具?
Ren Qian code compilation error modification
Build your own website (18)
「开源摘星计划」Loki实现Harbor日志的高效管理
. Net automapper use
Form组件常用校验规则-2(持续更新中~)
Remember an experience of using selectmany
Redis集群安装
Unity local coordinates and world coordinates
UWA问答精选
Amesim2016 and matlab2017b joint simulation environment construction
Px4 autonomous flight
Use json Stringify() to realize deep copy, be careful, there may be a huge hole
Firefox browser installation impression notes clipping