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

Odd Count / Document Results Differential On Sharded Collection

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.0, 2.2.0
    • Component/s: None
    • None
    • ALL

      I get a count of 4 and a result of 2 documents when I do the following on a sharded collection

      mongos> db.agg_collection.find(

      {"_id.summary_id": "c48b9bb63", "_id.placement_id": "1"}

      ).count()
      4
      mongos> db.agg_collection.find(

      {"_id.summary_id": "c48b9bb63", "_id.placement_id": "1"}

      ).pretty()
      {
      "_id" :

      { "placement_id" : "1", "summary_id" : "c48b9bb63", "new_or_used" : "N" }

      ,
      "value" : 'hidden for patent reasons'
      }
      {
      "_id" :

      { "placement_id" : "1", "summary_id" : "c48b9bb63", "new_or_used" : "U" }

      ,
      "value" : 'hidden for patent reasons'
      }

            Assignee:
            aaron Aaron Staple
            Reporter:
            wwatson William Watson
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: