-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 8.0.0-rc0, 7.2.2, 7.3.2
-
Component/s: None
-
None
-
Replication
-
Fully Compatible
-
ALL
-
Repl 2024-06-10, Repl 2024-06-24, Repl 2024-07-08, Repl 2024-07-22
-
0
Running this query
aggregate([{$group: {_id:"$b"}}], { hint: { $natural: 1 }, $_requestResumeToken: true})
that requests a resume token, forces the $group to produce a record id, but it cannot provide it, so it fails with
uncaught exception: Error: command failed: { "ok" : 0, "errmsg" : "GROUP cannot propagate a record id slot, but the record id was requested by the parent", "code" : 6360401, "codeName" : "Location6360401" } with original command request: { "aggregate" : "coll", "pipeline" : [ { "$group" : { "_id" : "$b" } } ], "hint" : { "$natural" : 1 }, "$_requestResumeToken" : true, "cursor" : { }, "lsid" : { "id" : UUID("2e305b10-8b39-4d63-9861-48782295751d") }
- is related to
-
SERVER-77630 Implement $_requestResumeToken for aggregation.
- Closed