スレーブで SHOW SLAVE STATUS すると下記のようなエラーが出ています。
Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Found a Gtid_log_event or Previous_gtids_log_event when @@GLOBAL.GTID_MODE = OFF.; the first event 'mysql-bin.000013' at 404, the last event read from './mysql-bin.000013' at 452, the last byte read from './mysql-bin.000013' at 452.' Last_SQL_Errno: 1778 Last_SQL_Error: Error 'Cannot execute statements with implicit commit inside a transaction when @@SESSION.GTID_NEXT != AUTOMATIC or @@SESSION.GTID_NEXT_LIST != NULL.' on query. Default database: ''. Query: 'FLUSH ERROR LOGS'
FLUSH ERROR LOGS でレプリケーションが止まってしまいます。これは logrotate するときに発行されていて、1日経つと(深夜に)レプリケーションが止まるという、とても困った状態になりました。
調べたところこれは 5.6.11 固有のバグでした。公式に MySQL Bugs: #69045: replication was broken while executing flush tables としてレポートされています。
gtid_next が automatic ではないときに、暗黙にトランザクションを発生させてコミットするようなステートメントを禁止した副作用で、FLUSH LOGSなどのステートメントがうまく動かなくなってしまったらしいのです。
5.6.12 以降ではこのパッチは差し戻されて、正常に戻っています。
lop hoc ke toan tong hop
返信削除lop hoc ke toan thuc hanh
khoa hoc ke toan tong hop thuc hanh tai vinh nghe an
trung tam hoc ke toan thuc hanh tai vinh nghe an
khoa hoc ke toan thuc hanh
trung tam ke toan tong hop tai bac ninh
trung tam ke toan tong hop tai hai phong
Khoa hoc ke toan tong hop tai tphcm
Khoa hoc ke toan tong hop tai binh duong
trung tam ke toan tong hop tai ha dong
trung tam ke toan tong hop tai cau giay
trung tam ke toan tong hop tai long bien
dich vu ke khai lam bao cao thue
dich vu ke toan thue tron goi
dich vu lam bao cao tai chinh
dich vu ke toan tron goi
dich vu ra soat don dep so sach ke toan
dich vu quyet toan thue
I really appreciate this post. I have been looking all over for this! Thank goodness I found it on Bing. You have made my day! Thanks again!
返信削除바카라사이트탑