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

Do not serialize _internalOutputSortKeyMetadata in query shape hash

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • ALL
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-98453 introduced a new fieldĀ _internalOutputSortKeyMetadata which is serialized into the query shape. This is problematic as the computation of the query shape hash deviates from the original query shape hash introduced in 8.0.4.
      We should stop serializing this field when computing the query shape hash.

      I have attached two showDebugQueryShape responses, one on 8.0 (debugQSH_withDocs_80.json) and one on master (debugQSH_withDocs.json), as well as the diff to illustrate the difference (queryShapeHashDiff.diff).

        1. debugQSH_withDocs_80.json
          3 kB
        2. debugQSH_withDocs.json
          3 kB
        3. queryShapeHashDiff.diff
          0.3 kB

            Assignee:
            arun.banala@mongodb.com Arun Banala
            Reporter:
            victorfilip.ghita@mongodb.com Victor Ghita
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: