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

$documents not working on sharded cluster in 6.1

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 6.1.0
    • Component/s: None
    • None
    • ALL
    • Hide
      Enterprise [direct: mongos] test> use Tests11301056
      switched to db Tests11301056
      Enterprise [direct: mongos] Tests11301056> db.aggregate([{ $documents : [{ X : 10 }, { X : 2 }, { X : 5 }] }])
      
      Enterprise [direct: mongos]

       

      Show
      Enterprise [direct: mongos] test> use Tests11301056 switched to db Tests11301056 Enterprise [direct: mongos] Tests11301056> db.aggregate([{ $documents : [{ X : 10 }, { X : 2 }, { X : 5 }] }]) Enterprise [direct: mongos]  
    • QE 2022-12-26

      $documents is returning no documents when connected to a 6.1.0 mongos

      anna.henningsen@mongodb.com discovered that this only happens if the database is empty.

       

      Enterprise [direct: mongos] test> db.aggregate([{ $documents : [{ X : 10 }, { X : 2 }, { X : 5 }] }])
      [ { X: 10 }, { X: 2 }, { X: 5 } ]
      Enterprise [direct: mongos] test> db.dropDatabase()
      { ok: 1, dropped: 'test' }
      Enterprise [direct: mongos] test> db.aggregate([{ $documents : [{ X : 10 }, { X : 2 }, { X : 5 }] }]) 
      Enterprise [direct: mongos] test>

            Assignee:
            alyssa.clark@mongodb.com Alyssa Clark
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: