Running JavaScript function on the server could fail with misleading error message

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • QE 2024-10-28, CAR Team 2024-11-25, CAR Team 2024-12-09
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Running a map_reduce operation with a JavaScript function can fail with the error "A single operation cannot use both JavaScript aggregation expressions and $where" even if the query doesn't contain a $where instruction. This can happen when the command is sent to a shard that is updating the target collection with new data. This operation leaves the internal state of the JsExecution partially configured, so that, when the operation is automatically retried, it looks like it has been created by a $where instruction

              Assignee:
              Marcos José Grillo Ramirez
              Reporter:
              Alberto Massari
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: