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

Migrations calculate majority incorrectly when waiting for writes to replicate

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.2.2
    • Replication, Sharding
    • None
    • ALL

    Description

      During migrations we wait for writes to be replicated to a majority of nodes. To figure out how many nodes are in a majority we call getSlaveCount() (and divide it by 2 and add 1). The number reported by getSlaveCount(), however, may include old nodes that are no longer part of the set (or are now known by a different identifier). This could potentially cause us to wait for more nodes than exist - meaning that we will never acknowledge the writes as replicated.

      Attachments

        Activity

          People

            Unassigned Unassigned
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: