当前位置:网站首页>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 - modify wall thickness
- Matplotlib快速入门
- Ni9185 and ni9234 hardware settings in Ni Max
- Vs custom template - take the custom class template as an example
- [problem] pytorch installation
- 使用 CustomPaint 绘制基本图形
- [colmap] sparse reconstruction is converted to mvsnet format input
- How to quickly check whether the opening area ratio of steel mesh conforms to ipc7525
- JS number is insufficient, and 0 is added
- C development - interprocess communication - named pipeline
猜你喜欢
![[open source] Net ORM accessing Firebird database](/img/a2/4eff4f0af53bf3b9839a73019a212f.png)
[open source] Net ORM accessing Firebird database
Latest Android advanced interview questions summary, Android interview questions and answers

How to choose the appropriate automated testing tools?
Redis官方ORM框架比RedisTemplate更优雅

DNS series (I): why does the updated DNS record not take effect?

IP网络主动测评系统——X-Vision

Add get disabled for RC form

100million single men and women "online dating", supporting 13billion IPOs

Px4 autonomous flight

使用 CustomPaint 绘制基本图形
随机推荐
operator
PHP method of obtaining image information
[environment] pycharm sets the tool to convert QRC into py file
The whole network "chases" Zhong Xuegao
Revit secondary development - Hide occlusion elements
Signal feature extraction +lstm to realize gear reducer fault diagnosis -matlab code
php 获取图片信息的方法
如何选择合适的自动化测试工具?
Which futures company is the safest to open a futures account?
[advanced MySQL] index details (I): index data page structure
OpeGL personal notes - lights
Revit secondary development - operation family documents
「开源摘星计划」Loki实现Harbor日志的高效管理
Revit secondary development - intercept project error / warning pop-up
Time standard library
Robot autonomous exploration series papers environment code
What does it mean to prefix a string with F?
OpenGL job - texture
Matplotlib quick start
Aspose. Word operation word document (I)