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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Sharding 2020-09-21
    • 10
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Daniel Gottlieb (Inactive)
            Reporter:
            Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: