-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: 6.1.0
-
Component/s: None
-
None
-
ALL
-
-
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>
- duplicates
-
SERVER-63811 mongos returns no results for $documents if the database doesn't exist
- Closed