亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 數(shù)據(jù)庫 > MySQL > 正文

MySQL 5.7并發(fā)復(fù)制隱式bug實例分析

2024-07-25 19:09:17
字體:
供稿:網(wǎng)友

前言

我們MySQL線上環(huán)境大部分使用的是5.7.18的版本,這個版本已修復(fù)了很多bug,但針對主從復(fù)制的bug還是有很多的,尤其是一些組復(fù)制、并行復(fù)制的bug尤為突出,在5.7.19版本有做相應(yīng)改善和修復(fù)。所以建議5.7.19之前的版本還是不要使用mgr和并發(fā)復(fù)制的功能,如使用建議升級至5.7.19(含)以后的版本。

我這里遇到的問題主要是莫名其妙的數(shù)據(jù)同步出現(xiàn)問題,無法執(zhí)行stop slave,數(shù)據(jù)不一致等現(xiàn)象,經(jīng)過查看發(fā)現(xiàn)是版本bug所致,所以對已上線的從庫關(guān)閉并發(fā)復(fù)制,對未上線的系統(tǒng)實行版本升級。此風(fēng)險非常非常高,各位務(wù)必重視。

具體5.7.19修復(fù)的復(fù)制bug如下:

參考手冊:https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-19.html

References: See also: Bug #84107.

Replication: In the case of delayed initialization of the Group Replication plugin, deployed in single-primary mode, secondaries were able to get writes through an asynchronous replication channel, which is not allowed in normal initialization of the Group Replication plugin. (Bug #26314756)

Replication: With GTIDs generated for incident log events, MySQL error code 1590 (ER_SLAVE_INCIDENT) could not be skipped using the --slave-skip-errors=1590 startup option on a replication slave. (Bug #26266758)

Replication: A USE statement that followed a SET GTID_NEXT statement sometimes had no effect. (Bug #26128931)

Replication: Groups can now contain members running different server versions to enable you to do online upgrades of a replication group. The rules for combining members in a group with different versions are:

If you have a group with 8.0 members, you cannot add a 5.7 member

If you have a group with 5.7 members you can add a 8.0 member, but it remains in read-only mode. Writing to this member is dangerous while the group contains multiple server versions and should be avoided.

In a single-primary group, if the current primary leaves the group and a new primary must be elected, the primary is first chosen from the lower version members. If no lower version member is found, the primary is chosen from newer version members. (Bug #25876807)

Replication: When binlog_checksum=NONE was set on a MySQL server after startup, and then Group Replication was started, if an error occurred, the server remained in RECOVERING state and could not be shut down. (Bug #25793366, Bug #85667)

Replication: In a Group Replication setup where circular asynchronous replication was implemented between members of different replication groups, view change log events were repeatedly replicated between the groups with new generated GTIDs each time. The fix ensures that view change log events are ignored outside the named replication group where they occur, and never generate new GTIDs. (Bug #25674926)

References: See also: Bug #26049695, Bug #25928854, Bug #25721175.

Replication: When first starting the MySQL server following an installation from RPM, passwword validation plugin is activated by default (true only for RPM installations). If binary logging was already enabled at this time, the activation was logged, even though plugin activations should not be recorded in the binary log. (Bug #25672750)

Replication: In a setup where single-primary Group Replication was combined with asynchronous replication, for example with S1 and S2 forming a group and with S2 and S3 functioning as master and slave, secondaries such as S2 were accepting transactions and these could then enter the group. The fix prevents secondaries creating an asynchronous replication channel when belonging to a single-primary group, and Group Replication cannot be started when asynchronous replication is running. (Bug #25574200, Bug #85047)

References: See also: Bug #86325, Bug #26078602.

Replication: In the event that a member failed to join a group the member was not stopping and continued to accept transactions. To avoid this set your members to have super_read_only=1 in the my.cfg file. Group Replication now checks for this setting upon successful start up and sets super_read_only=0. This ensures that members which do not successfully join a group cannot accept transactions. (Bug #25474736, Bug #84728)

Replication: If the binary log on a master server was rotated and a full disk condition occurred on the partition where the binary log file was being stored, the server could stop unexpectedly. The fix adds a check for the existence of the binary log when the dump thread switches to next binary log file. If the binary log is disabled, all binary logs up to the current active log are transmitted to slave and an error is returned to the receiver thread. (Bug #25076007)

Replication: Interleaved transactions could sometimes deadlock the slave applier when the transaction isolation level was set to REPEATABLE-READ. (Bug #25040331)

Replication: If a relay log index file named relay log files that did not exist, RESET SLAVE ALL sometimes did not fully clean up properly. (Bug #24901077)

Replication: The slave_skip_errors system variable did not permit error numbers larger than 3000. Thanks to Tsubasa Tanaka for the patch. (Bug #24748639, Bug #83184)

Replication: mysqlbinlog, if invoked with the --raw option, does not flush the output file until the process terminates. But if also invoked with the --stop-never option, the process never terminates, thus nothing is ever written to the output file. Now the output is flushed after each event. (Bug #24609402)

Replication: A memory leak in mysqlbinlog was fixed. The leak happened when processing fake rotate events, or when using --raw and the destination log file could not be created. The leak only occurred when processing events from a remote server. Thanks to Laurynas Biveinis for his contribution to fixing this bug. (Bug #24323288, Bug #82283)

Replication: A slave server could lose events not yet applied when MASTER_AUTO_POSITION=0, both replication threads were stopped, and the applier delay was changed using CHANGE MASTER TO MASTER_DELAY=N. (Bug #23203678, Bug #81232)

References: See also: Bug #25340185, Bug #84375.

Replication: Transmission of large GCS messages could take so long the sender appeared to have died. (Bug #22671846)

Replication: Multithreaded slaves could not be configured with small queue sizes using slave_pending_jobs_size_max if they ever needed to process transactions larger than that size. Any packet larger than slave_pending_jobs_size_max was rejected with the error ER_MTS_EVENT_BIGGER_PENDING_JOBS_SIZE_MAX, even if the packet was smaller than the limit set by slave_max_allowed_packet.

With this fix, slave_pending_jobs_size_max becomes a soft limit rather than a hard limit. If the size of a packet exceeds slave_pending_jobs_size_max but is less than slave_max_allowed_packet, the transaction is held until all the slave workers have empty queues, and then processed. All subsequent transactions are held until the large transaction has been completed. The queue size for slave workers can therefore be limited while still allowing occasional larger transactions. (Bug #21280753, Bug #77406)

Replication: An incident event that broke replication was not written to the binary log with a GTID, so that it was not possible to skip the event using SET gtid_next=value. Instead, it was necessary to set the relay log file and relay log positions directly; this meant that, when autopositioning was enabled, it was necessary first to disable it, then to set the relay log file and position, and finally to re-enable autopositioning.

Now in such cases MySQL writes the incident event into the statement cache, so that a GTID is generated and written for it prior to flushing, and that the slave applier works with the change. Then users can skip the event using the SQL statement SET gtid_next=value, followed by BEGIN and COMMIT. (Bug #19594845)

Replication: In certain cases, the master could write to the binary log a last_committed value which was smaller than it should have been. This could cause the slave to execute in parallel transactions which should not have been, leading to inconsistencies or other errors. (Bug #84471, Bug #25379659)

Replication: When using group_replication_ip_whitelist=AUTOMATIC, IPs in the private network are permitted automatically, but some class C IP addresses were not being permitted correctly. (Bug #84329, Bug #25503458)

Replication: When an existing GTID_NEXT transaction was assigned a conflicting GTID by the server, Group Replication generated an assert upon detecting two transactions with same GTID. This was because Group Replication generates the GTID after conflict detection, which is later than with master/slave replication. The fix relaxes some conditions to only be called when commit is done and a message has been added to alert you when a GTID has already been used. (Bug #84153, Bug #25232042)

Replication: The replication applier thread returns Error 3002 ER_INCONSISTENT_ERROR when there is a difference between an expected error number and the actual error number. It is now possible to ignore this error by using 3002 with slave_skip_errors. (Bug #83186, Bug #24753281)

Replication: MySQL lost its GTID position following a restart when a dump from mysqldump had been used to load data.

To keep this problem from occurring, the mysql.gtid_executed table is now excluded automatically from dumps made by mysqldump. (Bug #82848, Bug #24590891)

References: See also: Bug #87455, Bug #26643180.

Replication: Corruption of relay logs for one channel in multi-source replication caused good channels not to be initalized during a server restart. In addition, when run with --skip-slave-start=false, the server also failed to start slave threads for those channels which were in good condition, despite the fact that it should have started the slave threads for all good channels.

Now, regardless of any errors on other channels, the server attempts to create and initialize channels that are in good condition, and starts slave threads for the good channels if --skip-slave-start is disabled. As part of this fix, START SLAVE and STOP SLAVE, which are intended to operate on all channels, are also modified such that they continue executing on all good channels even if they find bad channels among them. (Bug #82209, Bug #24285104)

Replication: The SQL thread was unable to GTID skip a partial transaction. (Bug #81119, Bug #25800025)

Debian client packages were missing information about conflicts with akonadi-backend-mysql packages. (Bug #26002288)

總結(jié)

以上就是這篇文章的全部內(nèi)容了,希望本文的內(nèi)容對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,如果有疑問大家可以留言交流,謝謝大家對VeVb武林網(wǎng)的支持。


注:相關(guān)教程知識閱讀請移步到MYSQL教程頻道。
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
欧美一级鲁丝片| 亚洲一区二区在线播放| av在线加勒比| 午夜精品久久久久久久无码| 亚州精品国产| 中文字幕第50页| 午夜毛片在线观看| 无码人妻精品一区二区三区在线| 日韩在线观看| 男人捅女人免费视频| 国产日韩一区二区在线观看| 99在线观看视频| 中文字幕一区二区三区人妻电影| 日韩成人免费电影| 亚洲国产中文字幕在线| 豆国产97在线|亚洲| 午夜在线不卡| 激情五月少妇a| 日本高清视频在线播放| 天堂资源在线播放| 午夜欧美性电影| 国产精品不卡在线| 亚洲91视频| 日本一区二区视频在线播放| 头脑特工队2免费完整版在线观看| 麻豆av在线免费看| 欧美独立站高清久久| 国产精品久久久久久久久久久久久| 欧美一区2区三区4区公司二百| 久久亚洲一区二区三区四区| www.国产精品| 亚洲一区中文字幕在线| 色婷婷精品久久二区二区蜜臀av| 精品国产综合久久| 黄色成人在线网| 国产在线传媒| 国语自产精品视频在线看一大j8| 久久电影在线| 国产精品偷伦一区二区| 精品人伦一区二区三区蜜桃免费| www婷婷av久久久影片| 9人人澡人人爽人人精品| 亚洲国产精品资源| 亚洲三级小视频| 国产精品久久久久久免费观看| 小日子的在线观看免费第8集| 国产精品久久久高清免费| 日韩黄色成人| 日本簧片在线观看| 99成人在线| 精品人伦一区二区色婷婷| 欧美日本成人| 水蜜桃久久夜色精品一区| 日本精品一级二级| 日韩电影在线一区二区三区| 成久久久网站| 国内一区二区在线视频观看| 99视频在线免费观看| 日韩黄色在线播放| 国产在线高清| 2023国产精品久久久精品双| www.欧美亚洲| 国产精一区二区三区| 久久九九热re6这里有精品| 精品国产一区二区三| 国产51自产区| 蜜桃精品wwwmitaows| 91免费在线视频| 青青草97国产精品免费观看无弹窗版| 久久人人爽爽人人爽人人片av| 国产一区二区三区成人| 成人免费视频网站入口::| 免费看的黄色录像| 少妇一级淫片免费放中国| 色综合色综合色综合| 中文字幕一区在线观看| 亚洲高清视频网站| 精品久久一区二区三区蜜桃| 国产69精品99久久久久久宅男| 狠狠躁少妇一区二区三区| 看片网站欧美日韩| 中文天堂最新版本在线观看| 一菊综合网成人综合网| www..com日韩| 久久不卡国产精品一区二区| 色噜噜一区二区三区| 亚洲成av人片一区二区梦乃| 黄色在线观看av| 日韩亚洲成人av在线| 久久亚洲专区| 人妖精品videosex性欧美| 色哟哟精品观看| 久久激情婷婷| 国产精品嫩草影院久久久| 国产毛片久久久久| 国产精久久久久久| 国产精品久久久久久免费| 影音先锋久久精品| 日韩激情av在线播放| 精品无码人妻一区二区三区品| 午夜激情福利网| 国产成人精品无码免费看夜聊软件| 制服丝袜亚洲精品中文字幕| 91在线观看一区二区| 国产亚洲美州欧州综合国| 韩国精品主播一区二区在线观看| 亚洲高清在线免费观看| 影音先锋国产精品| 午夜影院在线视频| 日韩三级精品| 在线播放日韩精品| 日本国产一区二区| 五月激情综合网| 秋霞成人影院| 日韩欧美国产不卡| 欧美一二三区视频| 久久精品99国产精品酒店日本| 99国产精品国产精品毛片| 久久久久亚洲av无码专区首jn| 久久久91精品国产一区不卡| 91视频综合| 国产成人禁片免费观看| 欧美精品欧美精品系列c| 日韩精品一区二区三区中文不卡| 97久久国产亚洲精品超碰热| 黄色片网址在线观看| 久青草视频在线观看| 后入内射无码人妻一区| 国产精品一区二区久久不卡| 中文字幕在线免费播放| 国产目拍亚洲精品99久久精品| 三上悠亚在线免费观看| 在线观看国产区| 国产99久久九九精品无码| 黄色永久免费网站| 亚洲日本国产精品| 在线成年人视频| 日韩人妻精品中文字幕| 人妻无码中文字幕| 国产日韩精品在线看| 98精品在线视频| 青青草社区视频| 福利视频第一区| 欧美日韩一区二区三区视频播放| 中文娱乐网av| av片中文字幕| 中老年在线免费视频| 国产精品第1页| 亚洲综合在线五月| 九九久久国产精品| www.超碰在线| av一区二区不卡| 日本免费高清一区| 99热免费在线| 日韩亚洲电影在线| 丝袜美腿高跟呻吟高潮一区| 羞羞视频在线观看免费| 日本tube24xxxxx| 亚州精品国产精品乱码不99按摩| 九九久久精品| 欧美一级爽aaaaa大片| 国产精品亚洲аv天堂网| 国产成人久久精品一区二区三区| 久久久精品区| 成人在线激情网| 久久久999视频| 午夜剧场日韩| 欧美亚洲日本在线| 亚洲高清激情| 久久网中文字幕| 国产精品一区二区无码对白| 91精品久久久久久久久久另类| 小小的日本在线观看免费色网| 欧美日韩国产高清视频| 亚洲日韩中文字幕一区| 亚洲精品久久久久久动漫器材一区| 欧美色图另类图片| 天天综合色天天综合| 精品亚洲a∨一区二区三区18| 奇米在线7777在线精品| 亚洲国产女人aaa毛片在线| 免费看成人片| 欧美91大片| 亚洲一区二区三区四区中文字幕| 国产亚洲精品自拍| 136福利精品导航| 17c精品麻豆一区二区免费| 夜夜嗨一区二区三区| 午夜精品免费观看| 欧美性猛交xxxx乱大交少妇| 国产精品久久久久久久久久久免费看| 粉嫩嫩av羞羞动漫久久久| 欧美午夜免费| 国产一区二区日韩精品欧美精品| 自拍偷拍中文字幕| 免费在线观看黄色| 欧美日韩在线免费观看视频| 亚洲美女毛片| 精品国产18久久久久久| 黄色一级片播放| 91视频观看免费| av资源站久久亚洲| 三级在线观看免费大全| 中文字幕亚洲影视| 91日韩视频在线观看| 伊人影院久久| 色视频免费网站| 93久久精品日日躁夜夜躁欧美| 成年人视频在线| 手机在线一区二区三区| 69久久夜色| 91久久精品日日躁夜夜躁国产| 99久久国产综合精品色伊| 开心久久婷婷综合中文字幕| 99久久亚洲精品| 色呦呦中文字幕| 久久黄色网页| 亚洲美洲欧洲综合国产一区| 美女网站在线| 国产精品传媒在线观看| 日韩精品黄色网| 在线国产精品网| 亚洲精品在线视频观看| 亚洲女人天堂成人av在线| 亚洲一区二区三区四区| 精品999日本久久久影院| 亚洲视频精品在线观看| 91精品高清| 亚洲国产美女精品久久久久∴| 在线视频精品免费| 婷婷色在线资源| 国产精品免费在线免费| 午夜性色一区二区三区免费视频| 国产精品资源网站| 久久九九热视频| 国产98在线|日韩| 性一交一乱一伧老太| 红杏一区二区三区| jizzjizz日本护士免费| 日韩区在线观看| 色婷婷综合久久久中文一区二区| 精品视频导航| 最近中文字幕mv免费高清视频8| 亚洲а∨天堂久久精品2021| 天天综合成人网| 在线观看日本一区二区| 欧美另类videosbestsex日本| 日韩福利视频| 2019中文亚洲字幕| 亚洲激精日韩激精欧美精品| 欧美一级视频免费观看| 国产在线精选视频| 国产精品精品一区二区三区午夜版| 日韩欧美亚洲范冰冰与中字| 伊人久久综合视频| 国产精品欧美一区二区三区| 在线视频综合导航| 懂色中文一区二区三区在线视频| 国产91免费看| 五月婷婷一区二区| 国产精品免费在线免费| 日韩成人三级| 国产黄色一级网站| 第84页国产精品| 欧美日韩破处视频| 国产高清不卡二三区| 不卡视频一区二区| 男人女人靠逼视频| xxxx欧美| 韩国视频一区| 这里只有精品久久| 国产女人水真多18毛片18精品视频| 午夜欧美一区二区三区免费观看| 精品麻豆剧传媒av国产九九九| 久久精品凹凸全集| 亚洲人线精品午夜| 91制片厂免费观看| 色噜噜狠狠狠综合曰曰曰88av| 国产精品你懂的在线| 欧美亚视频在线中文字幕免费| 亚洲第五色综合网| 欧美精品无码一区二区三区| 国产精品国产三级国产专区51| 一区二区三区美女| 欧美www在线观看| 久久男人资源站| 精品久久久精品| 亚洲精品亚洲人成人网| 国产欧美最新羞羞视频在线观看| 嫩草在线播放| 成人在线观看免费完整| 日本在线啊啊| 国产女无套免费视频| 国产成人无码www免费视频播放| 成人激情综合网站| 香蕉视频官网在线观看日本一区二区| 欧日韩在线视频| 在线播放www| 国产传媒视频在线观看| 久久se这里有精品| 日本成人中文字幕在线视频| 国产探花在线精品一区二区| 91久久国产综合久久蜜月精品| 国产色婷婷亚洲99精品小说| 91精品国产91久久久久青草| eeuss影院在线观看| 伊人免费视频2| 在线视频观看一区二区| 超碰成人久久| 日本特黄a级高清免费大片| 在线亚洲国产精品网站| 亚洲精品一区二区三区四区| 欧美sm极限捆绑bd| 国产在线日韩在线| 新欧美整片sss第一页| 欧美日韩性在线观看| 手机在线看片1024| 无码专区aaaaaa免费视频| 久久久www| 欧美劲爆第一页| 白浆在线视频| 极品少妇一区二区| 中文字幕日韩在线播放| 欧美 亚洲 另类 激情 另类| 日韩精品一区二区三区swag| 亚洲欧洲国产一区| 欧美日韩免费电影| 亚洲二区在线播放|