Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4552

bad value for millisAvg

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.0
    • Affects Version/s: 2.0.2
    • Component/s: Sharding
    • None
    • ALL

      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?

            Assignee:
            milkie@mongodb.com Eric Milkie
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: