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

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Catalog and Routing

      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.

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

              Created:
              Updated: