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

returnKey() will not work in mixed-version clusters between 4.2 and 4.4

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.3.1
    • Component/s: Querying
    • Labels:
    • Query
    • ALL
    • 50

      When a 4.2 mongos receives a returnKey() query, it appends an indexKey meta projection on a field "$$"

      https://github.com/mongodb/mongo/blob/8ff79f256f1e57b32edccae37dc260b342323d26/src/mongo/db/query/query_request.cpp#L577-L585

      That is:

      {"$$": {$meta: ...}}
      

      "$$" is an illegal field name in 4.4, so mongods version 4.4, so when run in a mixed cluster, these queries will uassert().

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: