[SERVER-5598] Run command on mongos> db.stats() get error "assertion" : "assertion s/../util/net/../../db/../bson/bsonobjbuilder.h:127", "errmsg" : "db assertion failure", "ok" : 0 Created: 13/Apr/12  Updated: 15/Aug/12  Resolved: 10/Jul/12

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.1.0
Fix Version/s: None

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

linux (oracle linux)


Issue Links:
Related
related to SERVER-5630 mongos unable to start give error "di... Closed
related to SERVER-5681 unable to start mongod give exception... Closed
Operating System: ALL
Participants:

 Description   

we setup mongo servers on two machine.All mongod run with journal option.

machine_1 : 4 mongod, 2 config server, mongos.
machine_2 : 4 mongod, 1 config server.

Run command db.stats()get following output:

mongos> db.stats()
{
"raw" : {
"192.168.129.244:10000" :

{ "db" : "00110412", "collections" : 3, "objects" : 20218, "avgObjSize" : 221103.14116134137, "dataSize" : 4470263308, "storageSize" : 4629549008, "numExtents" : 31, "indexes" : 2, "indexSize" : 2093056, "fileSize" : 5886181376, "nsSizeMB" : 16, "ok" : 1 }

,
"192.168.129.244:15000" :

{ "db" : "00110412", "collections" : 3, "objects" : 20616, "avgObjSize" : 221635.25126115637, "dataSize" : 4569232340, "storageSize" : 4629549008, "numExtents" : 31, "indexes" : 2, "indexSize" : 2142112, "fileSize" : 5886181376, "nsSizeMB" : 16, "ok" : 1 }

,
"192.168.129.244:20000" :

{ "errmsg" : "exception: assertion db/pdfile.h:300", "code" : 0, "ok" : 0 }

,
"192.168.129.244:25000" :

{ "errmsg" : "exception: assertion db/pdfile.h:300", "code" : 0, "ok" : 0 }

,
"192.168.129.245:40000" :

{ "errmsg" : "exception: assertion db/pdfile.h:300", "code" : 0, "ok" : 0 }

,
"192.168.129.245:45000" :

{ "errmsg" : "exception: assertion db/pdfile.h:300", "code" : 0, "ok" : 0 }

,
"192.168.129.245:50000" :

{ "errmsg" : "exception: assertion db/pdfile.h:300", "code" : 0, "ok" : 0 }

,
"192.168.129.245:55000" :

{ "db" : "00110412", "collections" : 3, "objects" : 1337, "avgObjSize" : 92868.35302916978, "dataSize" : 124164988, "storageSize" : 128385024, "numExtents" : 12, "indexes" : 2, "indexSize" : 138992, "fileSize" : 335544320, "nsSizeMB" : 16, "ok" : 1 }

},
"ok" : 0,
"errmsg" : "

{ 192.168.129.244:20000: \"exception: assertion db/pdfile.h:300\", 192.168.129.244:25000: \"exception: assertion db/pdfile.h:300\", 192.168.129.245:40000: \"exception: assertion db/pdfile.h:300\", 192.168.129.245:45000: \"exception: assertion db/pdfile.h:300\", 192.168.129.245:50000: \"exception: assertion db/pdfile.h:300\" }

"
}

please help me to solve above error

Thanks in advance
jitendra verma.



 Comments   
Comment by Ian Whalen (Inactive) [ 10/Jul/12 ]

@jitendra I'm closing this for now but please reopen if you've confirmed you're seeing the same problem in 2.0.4 or later.

Comment by Eliot Horowitz (Inactive) [ 22/Apr/12 ]

Can you upgrade to a non-rc version?
Ideally 2.0.4

Comment by jitendra [ 22/Apr/12 ]

/mongos db version v2.0.3-rc0, pdfile version 4.5 starting (--help for usage)
Tue Apr 17 18:49:17 git version: 643c3a25c7fa272a3ff343a7ed653f0cef17f60f

please help me to solve above error

Thanks in advance
jitendra verma.

Comment by Eliot Horowitz (Inactive) [ 15/Apr/12 ]

Are you sure this is version 2.1.0?
Doesn't seem like it from line #s.
Can you send exact git hash?

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