-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 3.1.8
-
Component/s: Aggregation Framework
-
None
-
Fully Compatible
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Just tried to run
{ aggregate: "bigarray", pipeline: [ { $sample: { size: 1000 } } ], cursor: {} }
and got error:
Sort exceeded memory limit of 104857600 bytes, but did not opt in to external sorting. Aborting operation. Pass allowDiskUse:true to opt in.
It's not clear why aggregation sorting is involved in $sample - if that's expected it needs to be prominently documented, but if it shouldn't be using sort then this is a bug.