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

Relax invariant in ReshardingOpObserver about temporary reharding collection being sharded

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • Sharding 2021-03-22
    • 153
    • 1

    Description

      It is technically possible for a user to manually create a "system.resharding." collection that isn't sharded. The invariants in ReshardingOpObserver::onInserts() and ReshardingOpObserver::onUpdate() should be changed to a uassert(ErrorCodes::NamespaceNotSharded, ..., metadata && metadata->isSharded()) to avoid crashing the server in such a situation.

      Attachments

        Issue Links

          Activity

            People

              yuhong.zhang@mongodb.com Yuhong Zhang
              max.hirschhorn@mongodb.com Max Hirschhorn
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: