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

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

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • ALL
    • QE 2024-10-28, CAR Team 2024-11-25
    • 0

      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.grillo@mongodb.com Marcos José Grillo Ramirez
            Reporter:
            alberto.massari@mongodb.com Alberto Massari
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: