Throwable function used in scope guard when registering index

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • v7.1, v7.0, v6.0
    • Sharding EMEA 2023-10-16, Sharding EMEA 2023-10-30
    • 32
    • 2
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-67119 added an API to create and drop indexes registered in the sharding catalog. It was meant to be a first step before having a proper coordinator which will be implemented by PM-2852.

      As part of the API, in order to ensure that migrations are always resumed, sharding_ddl_util::resumeMigrations is called in an ON_BLOCK_EXIT. Considering that if there is a stepdown in the config server when trying to resume migrations, the function might throw in that scenario, this might lead to a crash in the server because the scope guard destructor is declared as noexcept.

              Assignee:
              Marcos José Grillo Ramirez
              Reporter:
              Marcos José Grillo Ramirez
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: