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

Rename collection: Convert usage of getCollectionDescription_DEPRECATED to getCollectionDescription

    • Fully Compatible
    • Sharding 2020-04-20, Sharding 2020-05-04

      As part of PM-1645 we need to make sure that all usages of getCollectionDescription handles StaleShardVersion errors correctly. To make progress easy to follow, we renamed the old implementation getCollectionDescription_DEPRECATED and we're progressively changing it to the new implementation that throws if no collection metadata has been loaded.

      In the case of rename collection, besides changing to the new implementation we have to ensure that:

      • The calls to isSharded are performed only on the primary if we're applying a log operation
      • The Collection Sharding State of temporary collections is not being check, considering temporary from the application's perspective
      • All the calls to the rename collection command are passing through a router if the server has been started with the --shardsvr parameter and was added to a cluster

            Assignee:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: