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
    • 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:
            Unassigned Unassigned
            Reporter:
            alberto.massari@mongodb.com Alberto Massari
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: