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

Renaming view return wrong error on sharded cluster

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • v6.1, v6.0, v5.0
    • Sharding EMEA 2022-10-03, Sharding EMEA 2022-10-17, Sharding EMEA 2022-10-31

    Description

      Renaming a view a is not supported and should return CommandNotSupportedOnView while this is the case on replica set and standalone it is not on sharded cluster.

      In fact,  in sharded cluster, we return NamespaceNotFound error instead of CommandNotSupportedOnView.
      This is because before to check if the nss is a view we throw NamespaceNotFound if the collection is not present in the local catalog

      As part of this ticket we should also add test coverage for renaming view on sharded cluster.

      Attachments

        Activity

          People

            enrico.golfieri@mongodb.com Enrico Golfieri
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: