Skip to content

Instantly share code, notes, and snippets.

@dchentech
Created November 8, 2011 10:19
Show Gist options
  • Save dchentech/1347427 to your computer and use it in GitHub Desktop.
Save dchentech/1347427 to your computer and use it in GitHub Desktop.
在mongodb上重建一个百万级数据量的索引就把进程给搞挂了
第一次在ruby客户端中途取消,第二次就华丽丽的down掉了
248300/1548508 16%
Tue Nov 8 17:59:10 Invalid access at address: 0x2aabdf7dbe24
Tue Nov 8 17:59:10 Got signal: 7 (Bus error).
Tue Nov 8 17:59:11 Backtrace:
0x8ad399 0x8ad970 0x3dc6a0eb10 0x7345f8 0x77b264 0x682625 0x6876e9 0x688b7f 0x689101 0x689370 0x688fed 0x689370 0x688fed 0x689370 0x688fed 0x689370 0x688fed 0x689370 0x688fed 0x689370
mongod(_ZN5mongo10abruptQuitEi+0x399) [0x8ad399]
mongod(_ZN5mongo24abruptQuitWithAddrSignalEiP7siginfoPv+0x220) [0x8ad970]
/lib64/libpthread.so.0 [0x3dc6a0eb10]
mongod(_ZN5mongo16NamespaceDetails5allocEPKciRNS_7DiskLocE+0x188) [0x7345f8]
mongod(_ZN5mongo11DataFileMgr6insertEPKcPKvibRKNS_11BSONElementEb+0x8a4) [0x77b264]
mongod(_ZN5mongo11BtreeBucket9addBucketERKNS_12IndexDetailsE+0x65) [0x682625]
mongod(_ZN5mongo11BtreeBucket5splitENS_7DiskLocEiS1_RKNS_7BSONObjERKNS_8OrderingES1_S1_RNS_12IndexDetailsE+0x59) [0x6876e9]
mongod(_ZNK5mongo11BtreeBucket10insertHereENS_7DiskLocEiS1_RKNS_7BSONObjERKNS_8OrderingES1_S1_RNS_12IndexDetailsE+0x99f) [0x688b7f]
mongod(_ZNK5mongo11BtreeBucket7_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbS1_S1_RNS_12IndexDetailsE+0x281) [0x689101]
mongod(_ZNK5mongo11BtreeBucket9bt_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbRNS_12IndexDetailsEb+0xc0) [0x689370]
mongod(_ZNK5mongo11BtreeBucket7_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbS1_S1_RNS_12IndexDetailsE+0x16d) [0x688fed]
mongod(_ZNK5mongo11BtreeBucket9bt_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbRNS_12IndexDetailsEb+0xc0) [0x689370]
mongod(_ZNK5mongo11BtreeBucket7_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbS1_S1_RNS_12IndexDetailsE+0x16d) [0x688fed]
mongod(_ZNK5mongo11BtreeBucket9bt_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbRNS_12IndexDetailsEb+0xc0) [0x689370]
mongod(_ZNK5mongo11BtreeBucket7_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbS1_S1_RNS_12IndexDetailsE+0x16d) [0x688fed]
mongod(_ZNK5mongo11BtreeBucket9bt_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbRNS_12IndexDetailsEb+0xc0) [0x689370]
mongod(_ZNK5mongo11BtreeBucket7_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbS1_S1_RNS_12IndexDetailsE+0x16d) [0x688fed]
mongod(_ZNK5mongo11BtreeBucket9bt_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbRNS_12IndexDetailsEb+0xc0) [0x689370]
mongod(_ZNK5mongo11BtreeBucket7_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbS1_S1_RNS_12IndexDetailsE+0x16d) [0x688fed]
mongod(_ZNK5mongo11BtreeBucket9bt_insertENS_7DiskLocES1_RKNS_7BSONObjERKNS_8OrderingEbRNS_12IndexDetailsEb+0xc0) [0x689370]
Tue Nov 8 17:59:11 ERROR: Client::~Client _context should be null but is not; client:conn
Tue Nov 8 17:59:11 ERROR: Client::shutdown not called: conn
Tue Nov 8 18:01:04 [initandlisten] MongoDB starting : pid=32386 port=27017 dbpath=/bak/mongodb 64-bit
Tue Nov 8 18:01:04 [initandlisten] db version v1.8.3, pdfile version 4.5
Tue Nov 8 18:01:04 [initandlisten] git version: c206d77e94bc3b65c76681df5a6b605f68a2de05
Tue Nov 8 18:01:04 [initandlisten] build sys info: Linux bs-linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41
Tue Nov 8 18:01:04 [initandlisten] journal dir=/bak/mongodb/journal
Tue Nov 8 18:01:04 [initandlisten] recover begin
Tue Nov 8 18:01:04 [initandlisten] recover lsn: 0
Tue Nov 8 18:01:04 [initandlisten] recover /bak/mongodb/journal/j._5
Tue Nov 8 18:01:24 [initandlisten] recover /bak/mongodb/journal/j._6
Tue Nov 8 18:03:15 [initandlisten] recover cleaning up
Tue Nov 8 18:03:15 [initandlisten] removeJournalFiles
Tue Nov 8 18:03:15 [initandlisten] recover done
Tue Nov 8 18:03:16 [FileAllocator] allocating new datafile /bak/mongodb/a.0, filling with zeroes...
Tue Nov 8 18:03:16 [dur] lsn set 0
Tue Nov 8 18:03:16 [FileAllocator] done allocating datafile /bak/mongodb/a.0, size: 64MB, took 0.068 secs
Tue Nov 8 18:03:16 [FileAllocator] allocating new datafile /bak/mongodb/b.0, filling with zeroes...
Tue Nov 8 18:03:16 [FileAllocator] done allocating datafile /bak/mongodb/b.0, size: 64MB, took 0.071 secs
Tue Nov 8 18:03:16 [initandlisten] waiting for connections on port 27017
Tue Nov 8 18:03:16 [websvr] web admin interface listening on port 28017
Tue Nov 8 18:03:46 [initandlisten] connection accepted from 192.168.0.7:40204 #1
Tue Nov 8 18:03:48 [conn1] end connection 192.168.0.7:40204
@ING-XIAOJIAN
Copy link

I wanna know how to deal with it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment