-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.6.0-rc0
-
Component/s: Aggregation Framework, Sharding
-
ALL
-
We deploy a sharded cluster with a 2.6 mongos, a 2.6 mongod as one shard and a 2.4 mongod as the second shard. In this configuration, we run an aggregation query with the cursor option specified:
> db.coll.aggregate([{$match: {a: { "$lte" : 10}}}], { cursor: { batchSize: 10 }})
If both shards have chunks on them, then we get the following error: "exception: All shards must support cursors to get a cursor back from aggregation"
However, if only the 2.6 mongod has data and the 2.4 shard is empty, then this operation runs the aggregation query without an error and returns the cursor normally.