当前位置:网站首页>Why does MySQL need two-phase commit
Why does MySQL need two-phase commit
2022-07-06 04:45:00 【Chirp cat】
MySQL Why a two-phase submission is needed
Two stage submission diagram
Why a two-phase submission is needed ?
Guarantee binlog And redolog Data consistency .
If there is no two-stage submission :
First write redolog, To write binlog:
redolog finish writing sth. , I haven't written yet binlog,MySQL Downtime . After the restart ,redolog There are records in it ,MySQL Judge whether the transaction is submitted successfully , but binlog There is no record in the ,binlog And redolog Data inconsistency occurred . because binlog Yes, append write log , In the future binlog This data will always be missing . If used later binlog Recover the data at this point in time , There will be data loss .First write binlog, To write redolog:
binlog finish writing sth. , I haven't written yet redolog,MySQL Downtime . After the restart ,redolog There is no record of ,MySQL Judge transaction commit failure , however binlog There's a record in ,binlog And redolog Data inconsistency occurred . If you use it later binlog Restore data , There is one more transaction operation .
边栏推荐
- ue5 小知识 FreezeRendering 查看视锥内渲染的物体
- Yyds dry goods inventory OSI & tcp/ip
- 麦斯克电子IPO被终止:曾拟募资8亿 河南资产是股东
- win10电脑系统里的视频不显示缩略图
- [HBZ share] reasons for slow addition and deletion of ArrayList and fast query
- Recommendation | recommendation of 9 psychotherapy books
- Basic knowledge and examples of binary tree
- CADD课程学习(7)-- 模拟靶点和小分子相互作用 (柔性对接 AutoDock)
- Delete subsequence < daily question >
- After learning classes and objects, I wrote a date class
猜你喜欢
Uva1592 Database
ORM aggregate query and native database operation
[Yu Yue education] reference materials of complex variable function and integral transformation of Northwestern Polytechnic University
How does computer nail adjust sound
English Vocabulary - life scene memory method
[数学建模] 微分方程--捕鱼业的持续发展
Redis —— Redis In Action —— Redis 实战—— 实战篇一 —— 基于 Redis 的短信登录功能 —— Redis + Token 的共享 session 应用— 有代码
Postman管理测试用例
Embedded development program framework
捷码赋能案例:专业培训、技术支撑,多措并举推动毕业生搭建智慧校园毕设系统
随机推荐
Postman关联
CADD课程学习(8)-- 化合物库虚拟筛选(Virtual Screening)
Canal synchronizes MySQL data changes to Kafka (CentOS deployment)
Etcd database source code analysis -- etcdserver bootstrap initialization storage
[try to hack] John hash cracking tool
Quatre méthodes de redis pour dépanner les grandes clés sont nécessaires pour optimiser
Database - MySQL storage engine (deadlock)
也算是学习中的小总结
满足多元需求:捷码打造3大一站式开发套餐,助力高效开发
Selection of slow motion function
The implementation of the maize negotiable digital warehouse receipt standard will speed up the asset digitization process of the industry
Luogu deep foundation part 1 Introduction to language Chapter 2 sequential structure programming
我想问一下 按照现在mysql-cdc的设计,全量阶段,如果某一个chunk的binlog回填阶段,
Orm-f & Q object
[FreeRTOS interrupt experiment]
Knowledge consolidation source code implementation 3: buffer ringbuffer
word封面下划线
Postman前置脚本-全局变量和环境变量
Embedded development program framework
coreldraw2022新版本新功能介绍cdr2022