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

Recreate create collection coordinator result with catalog cache refresh

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • CAR Team 2023-11-27
    • 160

      In case of failure after the `commitOnShardingCatlog` at the create collection coordinator, the `_result` will not be set. We need to recreate it, so once the future is completed, the shardsvr command can retrieve correctly the response.

      This `_result` is a `CreateCollectionResponse` composed of a collection version. It is not okay to call the catalog cache and get the collection version from the routing info, as it may not have the collection entry - resulting in unsharded.

      The goal of this ticket is to make this call with refresh to see the most recent collection version after sharding the collection.

            Assignee:
            pol.pinol@mongodb.com Pol Pinol
            Reporter:
            pol.pinol@mongodb.com Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: