-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.2.2
-
Component/s: Storage
-
None
In the version 2.2.2 MAX_LOG_LINE is a constant defined in src/mongo/util/log.cpp:
299 const size_t MAX_LOG_LINE = 1024 * 10;
With profiling enabled, queries with long lines yields assertion:
Fri Feb 22 12:29:30 [conn36866007] warning: warning: log line attempted (83k) over max size(10k), printing beginning and end ... can't add full line to system.profile: ...
passes ns:Db.system.profile len:85704 maxPasses: 5000
passes max:2147483647 nrecords:4153 datasize: 1734568
Fri Feb 22 12:29:30 [conn36866007] Assertion: 10345:passes >= maxPasses in capped collection alloc
0x9ec2f6 0x9b6146 0x644217 0x7a0428 0x7a532b 0x7d9841 0x75b8dd 0x75cb8d 0x758c26 0x58d009 0x9db0c9 0x7fc9b30459ca 0x7fc9b23ec21d
/usr/bin/mongod(_ZN5mongo15printStackTraceERSo+0x26) [0x9ec2f6]
/usr/bin/mongod(_ZN5mongo11msgassertedEiPKc+0x96) [0x9b6146]
/usr/bin/mongod(_ZN5mongo16NamespaceDetails11cappedAllocEPKci+0x377) [0x644217]
/usr/bin/mongod(_ZN5mongo16NamespaceDetails6_allocEPKci+0x18) [0x7a0428]
/usr/bin/mongod(_ZN5mongo16NamespaceDetails5allocEPKciRNS_7DiskLocE+0x3b) [0x7a532b]
/usr/bin/mongod(_ZN5mongo11DataFileMgr17fast_oplog_insertEPNS_16NamespaceDetailsEPKci+0x71) [0x7d9841]
/usr/bin/mongod() [0x75b8dd]
/usr/bin/mongod(_ZN5mongo7profileERKNS_6ClientEiRNS_5CurOpE+0x3dd) [0x75cb8d]
/usr/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x996) [0x758c26]
/usr/bin/mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0xd9) [0x58d009]
/usr/bin/mongod(_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x439) [0x9db0c9]
/lib/libpthread.so.0(+0x69ca) [0x7fc9b30459ca]
/lib/libc.so.6(clone+0x6d) [0x7fc9b23ec21d]
Fri Feb 22 12:29:30 [conn36866007] warning: Caught Assertion while trying to profile update against Db.collection: 10345 passes >= maxPasses in capped collection alloc
Of course, it can happen many times at any times.
Maybe, it will be better to make this parameter as configurable?
- duplicates
-
SERVER-6981 maxPasses assertion (on allocation failure) can make capped collection unreadable
- Closed
- is related to
-
SERVER-11894 Inserting into a capped collection an object larger than max size causes a Signal 6 Abort
- Closed