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

首頁 > 數據庫 > MySQL > 正文

MySQL 5.7并發復制隱式bug實例分析

2024-07-25 19:09:17
字體:
來源:轉載
供稿:網友

前言

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

我這里遇到的問題主要是莫名其妙的數據同步出現問題,無法執行stop slave,數據不一致等現象,經過查看發現是版本bug所致,所以對已上線的從庫關閉并發復制,對未上線的系統實行版本升級。此風險非常非常高,各位務必重視。

具體5.7.19修復的復制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)

總結

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


注:相關教程知識閱讀請移步到MYSQL教程頻道。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
亚洲久久久久久久久久久| 成人h片在线播放免费网站| 亚洲国产成人精品久久久国产成人一区| 亚洲视频视频在线| 国产精品免费网站| 国内精品久久久久久影视8| 久久av资源网站| 亚洲欧美成人精品| 欧美日韩亚洲一区二区| 一区二区三区久久精品| 一个色综合导航| 国产精品精品视频| 欧美性极品少妇精品网站| 国产成人精品一区二区在线| 久久成人av网站| 久久精品国产综合| 久久精品中文字幕免费mv| 丝袜美腿精品国产二区| 欧美日韩国产综合视频在线观看中文| 欧洲亚洲免费视频| 亚洲在线免费观看| 国产精品黄色影片导航在线观看| 亚洲女人天堂成人av在线| 日韩电影大片中文字幕| 国产亚洲精品久久久久久| 成人夜晚看av| 美日韩在线视频| 欧美激情啊啊啊| 欧美丰满片xxx777| 国产精品第一页在线| 亚洲精品免费一区二区三区| 国产精品一区二区三区成人| 91精品国产91久久久久久不卡| 欧美激情videoshd| 国内精久久久久久久久久人| 国产精品白丝av嫩草影院| 亚洲跨种族黑人xxx| 国内外成人免费激情在线视频网站| 欧美电影免费观看高清完整| 在线播放精品一区二区三区| 亚洲直播在线一区| 亚洲精品国产品国语在线| 亚洲国产精品va在线看黑人| 亚洲综合国产精品| 亚洲bt欧美bt日本bt| 秋霞午夜一区二区| 一级做a爰片久久毛片美女图片| 欧美一级高清免费播放| 国产亚洲一区二区在线| 亚洲国产精品久久久久久| 久久久精品日本| 国产精品久久久久aaaa九色| 亚洲精品网址在线观看| 亚洲最大中文字幕| 国产精品第一页在线| 欧美综合国产精品久久丁香| 国产精品网站视频| 亚洲国产精品va在线看黑人| 亚洲a中文字幕| 欧美性开放视频| 欧美理论片在线观看| 成人黄色免费网站在线观看| 国产精品国语对白| 96sao精品视频在线观看| 亚洲综合小说区| 亚洲一区美女视频在线观看免费| 欧美精品日韩www.p站| 国产成人av网址| 久久久噜噜噜久久中文字免| 国产精品88a∨| 久久中文久久字幕| 一区二区三区视频免费在线观看| 成人中文字幕+乱码+中文字幕| 最近中文字幕mv在线一区二区三区四区| 欧美性在线观看| 2019最新中文字幕| 中文字幕成人在线| 在线播放国产一区中文字幕剧情欧美| 日韩精品在线观| 亚洲天堂av图片| 色偷偷av亚洲男人的天堂| 国产精品高潮视频| 国产精品av在线播放| 国产日韩av在线| 欧美激情国产高清| 在线观看国产欧美| 51午夜精品视频| 欧美专区在线观看| 国产精品爽爽爽爽爽爽在线观看| 亚洲精品丝袜日韩| 韩曰欧美视频免费观看| 久久精品中文字幕电影| 久久夜色精品亚洲噜噜国产mv| 成人免费大片黄在线播放| 国产97在线视频| 国产精品91一区| 欧美不卡视频一区发布| 亚洲人a成www在线影院| 97视频色精品| 亚洲国产成人av在线| 久久精品国产成人精品| 亚洲自拍偷拍第一页| 精品国产91乱高清在线观看| 亚洲国产欧美一区二区三区同亚洲| 国产精品永久免费视频| 青草热久免费精品视频| 久久乐国产精品| 成人h猎奇视频网站| 日韩中文在线中文网三级| 91成人福利在线| 136fldh精品导航福利| 夜夜嗨av一区二区三区免费区| 91地址最新发布| 欧美激情a∨在线视频播放| 久久久国产一区| www.日本久久久久com.| 大桥未久av一区二区三区| 日韩欧美视频一区二区三区| 91精品久久久久久久久中文字幕| 国内精品小视频| 亚洲国产日韩欧美综合久久| 日韩经典中文字幕| 不卡在线观看电视剧完整版| 国产成人拍精品视频午夜网站| 国产精品极品美女在线观看免费| 欧美在线性视频| 黑人与娇小精品av专区| 日韩av免费观影| 奇米四色中文综合久久| 久久av资源网站| 欧美黑人狂野猛交老妇| 欧洲午夜精品久久久| 日韩专区中文字幕| 国产亚洲欧美日韩美女| 亚洲变态欧美另类捆绑| 国产在线精品播放| 精品激情国产视频| 国产区精品在线观看| 欧美体内谢she精2性欧美| 亚洲女人初尝黑人巨大| 亚洲第一页在线| 久久久久久久久久国产| 亚洲国产日韩欧美在线图片| 精品国产福利视频| 午夜精品福利在线观看| 欧美国产精品va在线观看| 亚洲xxxx妇黄裸体| 中文字幕欧美日韩精品| 久久这里只有精品视频首页| 日韩成人在线网站| 亚洲新声在线观看| 欧美在线视频a| 国产精品久久久久久久av大片| 国内免费精品永久在线视频| 91久久中文字幕| 国产视频久久久久久久| 久久精品91久久香蕉加勒比| 日韩三级影视基地| 日韩欧美在线一区| 国外成人在线直播| 欧美性感美女h网站在线观看免费| 国产成人91久久精品| 久久精品成人欧美大片| 亚洲一区中文字幕|