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

Command to verify Consistency of Indexes within a Cluster

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      Under certain circumstances, a node that is currently acting as Primary - Host A - dies suddenly during an index build process resulting in an election of a new primary - Host C. The index build then will conclude on the node that was previously primary (Host A). As Host A is not the Primary the index build isn't replicated to the other nodes and resulting inconsistent indexes between the cluster members (Host A versus B and C). Additionally, this behavior is detailed in SERVER-14746.

      In these cases, it might be useful to have a command to view inconsistent indexes or indexes across the nodes in a replica set in order troubleshoot differences in behavior by running rs.checkIndexes(), for example. Such a command might also be able to be leveraged on our Cloud offerings in order to proactively identify such circumstances before an election causes a change in behavior for the customer's application.

            Unassigned Unassigned
            andy.walsh@mongodb.com Andrew Walsh
            0 Vote for this issue
            6 Start watching this issue