[SERVER-4552] bad value for millisAvg Created: 25/Dec/11  Updated: 11/Jul/16  Resolved: 27/Dec/11

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

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

I did a query that generated no shards

s.adminCommand( { shardcollection: '' + c, key:

{ a:1,b:1 }

} );
printjson( c.find({a:1,b:{$gt:4,$lt:2}}).explain() );

{
"clusteredType" : "ParallelSort",
"shards" : {

},
"millisTotal" : 0,
"millisAvg" : -2147483648,
"numQueries" : 0,
"numShards" : 0
}

The millisAvg value seems strange - just a guess, perhaps a variable is left uninitialized to avoid a divide by zero error?



 Comments   
Comment by auto [ 27/Dec/11 ]

Author:

{u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-4552 avoid divide by zero error, just in case
Branch: master
https://github.com/mongodb/mongo/commit/5ea3bf83f931bad7a0e3aae20fa6176e1724f3e1

Comment by Eric Milkie [ 27/Dec/11 ]

Code was already changed for SERVER-4398, which initialized the variables.

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