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

Investigate changes in SERVER-81055: $listSearchIndexes does not throw when used outside of atlas in 7.2 alpha releases

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Critical - P2 Critical - P2
    • 7.2.0-rc0, 7.0.3, 7.1.1
    • None
    • manual, Server
    • None

    Description

      Original Downstream Change Summary

      Queries that used to succeed with no results if not configured correctly will now fail with an error message

      Description of Linked Ticket

      https://jira.mongodb.org/browse/SERVER-78831 recently fixed a bug with the $listSearchIndexes aggregation pipeline stage to cause it to throw an error when not connected to an Atlas cluster. Example output from 7.0.1:

      >  db.adminCommand({ buildInfo: 1 }).version
      7.0.1
      > db.bar.getSearchIndexes()
      MongoServerError: PlanExecutor error during aggregation :: caused by :: Search index commands are only supported with Atlas.
      

      There appears to be a regression in the 7.2 alpha releases. This fix is no longer present and $listSearchIndexes returns an empty array when executed against a non-Atlas cluster. Example from 7.2.0-alpha-39-g3e9f147:

      >  db.adminCommand({buildInfo: 1}).version
      7.2.0-alpha-39-g3e9f147
      >  db.bar.getSearchIndexes()
      []
      

       

       

      Attachments

        Activity

          People

            kenneth.dyer@mongodb.com Kenneth Dyer
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 days ago