Get rid of scatterGatherVersionedTargetByRoutingTableNoThrowOnStaleShardVersionErrors

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • None
    • 3
    • TBD
    • 🟩 Routing and Topology
    • None
    • None
    • None
    • None
    • None
    • None

      Now that we should wrap every "scatterGatter" function call with a CollectionRouter, we should not allow calling a "scatterGatter" function without throwing  on a stale ShardVersion error. This is because the CollectionRouter wrapper can only handle errors that are thrown.

      Therefore, we should remove the function `scatterGatherVersionedTargetByRoutingTableNoThrowOnStaleShardVersionErrors`.

      It's only being used in shardsvr_drop_indexes.cpp in order to skip those shards that already succeeded on a previous iteration. To keep that behavior, we can add the same functionality to the already existing function `scatterGatherVersionedTargetByRoutingTable`.

              Assignee:
              Silvia Surroca
              Reporter:
              Silvia Surroca
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: