日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

mysql xtrabackup 遭遇严重bug

發布時間:2023/12/9 数据库 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mysql xtrabackup 遭遇严重bug 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我們的mysql 備份系統遭遇嚴重bug

源于 開源軟件 xtrabackup 的一個bug??
https://bugs.launchpad.net/percona-xtrabackup/+bug/722638

之前我們的大規模部署都沒有遇到這問題。

在做計數器轉mysql 后,我們部署了備份系統,屢屢備份失敗,于是決定徹底的解決這個問題,

經過一系列測試后,發現在備份過程無法跨越 計數器的數據入庫操作,

備份系統報錯:
[code]
[01] Copying ./cnt_it/cnt_referrer_channel_2011.ibd
???? to /usr/local/mysql/crontab/cnt_it/backup/innodb/full/2011-06-10_18-18-25/cnt_it/cnt_referrer_channel_2011.ibd
[01]??????? ...done
[01] Copying ./cnt_it/cnt_goals_abandon_201109.ibd
???? to /usr/local/mysql/crontab/cnt_it/backup/innodb/full/2011-06-10_18-18-25/cnt_it/cnt_goals_abandon_201109.ibd
[01]??????? ...done
[01] Copying ./cnt_it/cnt_referrer_search_keyword_201107.ibd InnoDB: Error: tablespace id is 43167 in the data dictionary
InnoDB: but in file ./cnt_it/cnt_referrer_summary_work.ibd it is 43178!
110610 18:37:57? InnoDB: Assertion failure in thread 1201920320 in file /home/buildbot/slaves/percona-server-51-12/TGZ_CentOS_5_x86_64/work/xtrabackup-1.6/Percona-Server-5.5/storage/innobase/fil/fil0fil.c line 780
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.

???? to /usr/local/mysql/crontab/cnt_it/backup/innodb/full/2011-06-10_18-18-25/cnt_it/cnt_referrer_search_keyword_201107.ibd
[01]??????? ...done
[01] Copying ./cnt_it/cnt_goals_referrer_201205.ibd
???? to /usr/local/mysql/crontab/cnt_it/backup/innodb/full/2011-06-10_18-18-25/cnt_it/cnt_goals_referrer_201205.ibd
[01]??????? ...done
./backup.sh: line 109: 24002 備份失敗 ?????????????? xtrabackup --defaults-file=$CNF --backup --target-dir=$BACKUP/$ENGINE/full/$day --datadir=$DATADIR
+ return 1
+ critical?
+ df -h
[/code]


上面是什么問題呢?

就是說在備份過程中,數據庫的表不能rebuild? 操作,比如: truncate table , drop table ,并重新建表 這樣的操作。

從報錯信息上看,應該是xtrabackup 已經考慮到這個問題了,只是當時沒有處理,于是在相關的代碼處加了一個assertion
代碼這個地方出錯,就退出。


這個bug 在1.5,1.5.1? ,1.6 版本都存在這個問題。 要到1.7版本才能修復。

慢慢等吧!

目前替代方案,采用備份從庫解決。 

轉載于:https://www.cnblogs.com/ylqmf/archive/2011/10/13/2210336.html

創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎

總結

以上是生活随笔為你收集整理的mysql xtrabackup 遭遇严重bug的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。