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

Consider adding a prerequisite check to removeShard which requires all shards to have consistent index definitions

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None
    • Catalog and Routing

    Description

      It is possible for shards to enforce different constraints for inserts and updates due to having different index definitions. Our data migration protocols do not allow inserting documents into a shard which would violate these constraints. (And corrupting an index on another shard to allow removing a shard to succeed is not a tradeoff we're willing to make.) This means removing a shard may leave that shard in the draining state for an indefinite amount of time until a client manually intervenes. Eagerly failing the removeShard command may be preferable to avoid the system from becoming stuck in this state.

      Attachments

        Activity

          People

            backlog-server-catalog-and-routing Backlog - Catalog and Routing
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: