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

XMLWordPrintableJSON

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

      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 - Query Team (Inactive)
            Reporter:
            Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: