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

Recreate create collection coordinator result with catalog cache refresh

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • CAR Team 2023-11-27
    • 160

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: