Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16060

[Atlas Search] changes in SERVER-75010: Implement no-op planShardedSearch in 5.0

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.18, 4.4.22
    • Affects Version/s: None
    • Component/s: Atlas
    • Labels:
      None
    • 1

      Original Downstream Change Summary

      `$search` queries with a specified `sort` in sharded clusters will now fail instead of silently return incorrect results.

      Description of Linked Ticket

      Currently planShardedSearch is only implemented in 6.0+. Thus when a sharded cluster receives a $search query with sort, it does not support merge sorting on $searchSortValues as mongos never got a sortSpec from mongot, resulting in incorrect query results (potentially not sorted results).

      The task of this ticket is to send a planShardedSearch request in sharded cluster in 5.0 to mongot, indicating to mongot that mongos does not support sort. Mongot will respond with an error if the query contains a sort, causing mongos to error out. This will solve the problem described above by returning an error rather than silently returning incorrect results.

            Assignee:
            kanchana.sekhar@mongodb.com Kanchana Sekhar
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              30 weeks, 2 days ago