[SERVER-19047] Assertion: 10334:BSONObj size: ------ Cannot repair database Created: 19/Jun/15  Updated: 23/Jun/15  Resolved: 23/Jun/15

Status: Closed
Project: Core Server
Component/s: Admin, Storage
Affects Version/s: debugging with submitter
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: xiaoli wang Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

I want to repair my database, because of "https://jira.mongodb.org/browse/SERVER-18990?filter=17920"
and I got some error above.

1. mongod --dbpath /var/ceilometer --repair

Participants:

 Description   

version: 2.6.8
3 nodes replica set and all in error
--------------- mongodb.log
2015-06-19T20:14:08.617+0800 [FileAllocator] allocating new datafile /var/ceilometer/_tmp_repairDatabase_0/local.22, filling with zeroes...
2015-06-19T20:14:08.618+0800 [FileAllocator] done allocating datafile /var/ceilometer/_tmp_repairDatabase_0/local.22, size: 2047MB, took 0 secs
2015-06-19T20:14:08.618+0800 [FileAllocator] allocating new datafile /var/ceilometer/_tmp_repairDatabase_0/local.23, filling with zeroes...
2015-06-19T20:14:08.619+0800 [FileAllocator] done allocating datafile /var/ceilometer/_tmp_repairDatabase_0/local.23, size: 2047MB, took 0 secs
2015-06-19T20:14:08.619+0800 [FileAllocator] allocating new datafile /var/ceilometer/_tmp_repairDatabase_0/local.24, filling with zeroes...
2015-06-19T20:14:08.620+0800 [FileAllocator] done allocating datafile /var/ceilometer/_tmp_repairDatabase_0/local.24, size: 2047MB, took 0 secs
2015-06-19T20:14:08.620+0800 [FileAllocator] allocating new datafile /var/ceilometer/_tmp_repairDatabase_0/local.25, filling with zeroes...
2015-06-19T20:14:08.622+0800 [FileAllocator] done allocating datafile /var/ceilometer/_tmp_repairDatabase_0/local.25, size: 2047MB, took 0 secs
2015-06-19T20:14:08.633+0800 [initandlisten] Assertion: 10334:BSONObj size: 761487667 (0x2D636133) is invalid. Size must be between 0 and 16793600(16MB) First element: 71719911937: ?type=49
2015-06-19T20:14:08.639+0800 [initandlisten] local.oplog.rs 0xffec79 0xfa7ea5 0xf90716 0xf9084c 0x7dc8a7 0x8dda08 0xd03ddf 0x7d0ff8 0x7d349d 0x7d5176 0x7d57eb 0x7d5d0a 0x7d6769 0x2b68d6074c56 0x7cef19
mongod(_ZN5mongo15printStackTraceERSo+0x29) [0xffec79]
mongod(_ZN5mongo10logContextEPKc+0x1f5) [0xfa7ea5]
mongod(_ZN5mongo11msgassertedEiPKc+0xe6) [0xf90716]
mongod() [0xf9084c]
mongod(_ZNK5mongo7BSONObj14_assertInvalidEv+0x3a7) [0x7dc8a7]
mongod(_ZN5mongo10Collection6docForERKNS_7DiskLocE+0x68) [0x8dda08]
mongod(_ZN5mongo14repairDatabaseESsbb+0x1d5f) [0xd03ddf]
mongod(_ZN5mongo11doDBUpgradeERKSsPNS_14DataFileHeaderE+0x68) [0x7d0ff8]
mongod() [0x7d349d]
mongod(_ZN5mongo14_initAndListenEi+0x9b6) [0x7d5176]
mongod(_ZN5mongo13initAndListenEi+0x1b) [0x7d57eb]
mongod() [0x7d5d0a]
mongod(main+0x9) [0x7d6769]
/lib64/libc.so.6(__libc_start_main+0xe6) [0x2b68d6074c56]
mongod() [0x7cef19]
2015-06-19T20:14:08.640+0800 [initandlisten] cleaning up failed repair db: local path: /var/ceilometer/_tmp_repairDatabase_0
2015-06-19T20:14:09.682+0800 [initandlisten] exception in initAndListen: 10334 BSONObj size: 761487667 (0x2D636133) is invalid. Size must be between 0 and 16793600(16MB) First element: 71719911937: ?type=49, terminating
2015-06-19T20:14:09.682+0800 [initandlisten] dbexit:
2015-06-19T20:14:09.682+0800 [initandlisten] shutdown: going to close listening sockets...
2015-06-19T20:14:09.682+0800 [initandlisten] shutdown: going to flush diaglog...
2015-06-19T20:14:09.682+0800 [initandlisten] shutdown: going to close sockets...
2015-06-19T20:14:09.682+0800 [initandlisten] shutdown: waiting for fs preallocator...
2015-06-19T20:14:09.682+0800 [initandlisten] shutdown: closing all files...
2015-06-19T20:14:09.683+0800 [initandlisten] closeAllFiles() finished
2015-06-19T20:14:09.683+0800 [initandlisten] shutdown: removing fs lock...
2015-06-19T20:14:09.683+0800 [initandlisten] dbexit: really exiting now



 Comments   
Comment by Ramon Fernandez Marina [ 23/Jun/15 ]

No problem esala116. I'm going to close this ticket then since there's not enough information for us to track the root cause of this issue. If this happens again feel to open another ticket and make a copy of your database files.

Thanks,
Ramón.

Comment by xiaoli wang [ 23/Jun/15 ]

I am sorry. I want to repair my mongodb system quickly, so I removed all local files, and restart my mongodb.

Comment by Ramon Fernandez Marina [ 19/Jun/15 ]

Would you be able to upload the affected database files so we can investigate? If the answer is yes please let me know and I'll send you upload instructions to a private portal.

Thanks,
Ramón.

Generated at Thu Feb 08 03:49:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.