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

Assertion fired when requesting record id for a query that doesn't provide it

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • 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")
              }
       

            Assignee:
            jiawei.yang@mongodb.com Jiawei Yang
            Reporter:
            alberto.massari@mongodb.com Alberto Massari
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: