故障现象
备份显示成功,不过有次准备用这个备份恢复数据库时,mongorestore却失败了,报错如下
2017-05-11T23:52:48.050+0800 Progress: 348374754/1256078901 27% (bytes)
INVALID OBJECT - going to try and print out
size: 377
error: bson length doesn't match what we found in object with _id: "rsth477f0de250b4df1832408d99"
2017-05-11T23:52:48.353+0800 Assertion: 10331:EOO Before end of object
2017-05-11T23:52:48.358+0800 0x11bf291 0x1162d19 0x11473f6 0x76627f 0x1138d5d 0x7715a5 0x776207 0x7759d1
/opt/udb/instance/mongodb-2.6/udb-23os52/script/mongorestore(_ZN5mongo15printStackTraceERSo+0x21) [0x11bf291]
/opt/udb/instance/mongodb-2.6/udb-23os52/script/mongorestore(_ZN5mongo10logContextEPKc+0x159) [0x1162d19]
/opt/udb/instance/mongodb-2.6/udb-23os52/script/mongorestore(_ZN5mongo11msgassertedEiPKc+0xe6) [0x11473f6]
INVALID OBJECT - going to try and print out
size: 377
error: bson length doesn't match what we found in object with _id: "rsth477f0de250b4df1832408d99"
2017-05-11T23:52:48.353+0800 Assertion: 10331:EOO Before end of object
2017-05-11T23:52:48.358+0800 0x11bf291 0x1162d19 0x11473f6 0x76627f 0x1138d5d 0x7715a5 0x776207 0x7759d1
/opt/udb/instance/mongodb-2.6/udb-23os52/script/mongorestore(_ZN5mongo15printStackTraceERSo+0x21) [0x11bf291]
/opt/udb/instance/mongodb-2.6/udb-23os52/script/mongorestore(_ZN5mongo10logContextEPKc+0x159) [0x1162d19]
/opt/udb/instance/mongodb-2.6/udb-23os52/script/mongorestore(_ZN5mongo11msgassertedEiPKc+0xe6) [0x11473f6]