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

sharding_rs2.js tries to send command to secondaries that can be stale

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.7.0
    • None
    • None
    • Fully Compatible
    • ALL
    • Sharding 2020-09-21
    • 10

    Description

      Test starts as 2 node replica set shards, does a migration with _waitForDelete: true and tries to call count with slaveOk. Range deletion waits for majority and this would have been fine if there were only 2 nodes, but the test adds another at the beginning, so it has 3. This means that the count command could be sent to a node that has not yet replicated the orphan cleanup.

      They were instances in the tests where it would wait for all nodes to catch up, but there was none for the latter half of the test.

      Attachments

        Activity

          People

            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: