Fix stale_mongos_and_restarted_shards_agree_on_shard_version.js to exclude failed refreshes

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2021-04-05
    • 131
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      An assert of stale_mongos_and_restarted_shards_agree_on_shard_verion.js is checking how many full refreshes are done in a very specific scenario. The problem is that this test would like to check how many full refreshes were completed but what it is actually checking is how many full refreshes were started.

      In order to fix that we could decrement the countFailedRefreshes counter. Nnote that this counter includes failed incremental AND failed full refreshes, but I think that for this case it is ok.

            Assignee:
            Sergi Mateo Bellido
            Reporter:
            Sergi Mateo Bellido
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: