当前位置:网站首页>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
边栏推荐
- How to realize the movement control of characters in horizontal game
- [advanced MySQL] index details (I): index data page structure
- Px4 autonomous flight
- Unity FAQ (I) lack of references
- 强化学习-学习笔记9 | Multi-Step-TD-Target
- Oracle advanced (VI) Oracle expdp/impdp details
- Robot autonomous exploration DSVP: code parsing
- What is the difference between the three values of null Nan undefined in JS
- How to choose the appropriate automated testing tools?
- Redis集群安装
猜你喜欢

海外代理推荐
![[environment] pycharm sets the tool to convert QRC into py file](/img/4f/d1c811dea23e3695a8b6d04b938bb5.jpg)
[environment] pycharm sets the tool to convert QRC into py file

Time standard library
![[open source] Net ORM accessing Firebird database](/img/a2/4eff4f0af53bf3b9839a73019a212f.png)
[open source] Net ORM accessing Firebird database

Visual design form QT designer design gui single form program

The PHP source code of the new website + remove authorization / support burning goose instead of pumping

如何选择合适的自动化测试工具?

Redis集群安装

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

微服務遠程Debug,Nocalhost + Rainbond微服務開發第二彈
随机推荐
怎样写一个增广矩阵到txt文件中
. Net automapper use
The PHP source code of the new website + remove authorization / support burning goose instead of pumping
Unity development --- the mouse controls the camera to move, rotate and zoom
Overseas agent recommendation
OpenGL jobs - shaders
Customer case | China law network, through observing the cloud, greatly shortens the time of fault location
客户案例|华律网,通过观测云大幅缩短故障定位时间
100million single men and women "online dating", supporting 13billion IPOs
Attitude estimation (complementary filtering)
Cataloger integrates lidar and IMU for 2D mapping
Robot autonomous exploration series papers environment code
Aspose. Word operation word document (I)
php 记录完整对接腾讯云直播以及im直播群聊 所遇到的坑
Redis official ORM framework is more elegant than redistemplate
How to choose the appropriate automated testing tools?
Use json Stringify() to realize deep copy, be careful, there may be a huge hole
JS number is insufficient, and 0 is added
Remember that a development is encountered in the pit of origin string sorting
Add get disabled for RC form