remove retrying on stale shardVersion errors from cluster_aggregate.cpp

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.5.13
    • None
    • Sharding
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-30025 will make the scatterGather*() methods throw a StaleConfigException on seeing a stale shardVersion error in a response from a shard.

      This StaleConfigException is caught at the top of mongos in generic command processing, and the command gets retried from the beginning.

      So, a command need not intercept stale shardVersion errors and perform any complicated retry logic itself.

      This will fix a bug in aggregation, where if a sharded collection is dropped and recreated as a view, the view definition response was not handled by the aggregation code on mongos.

            Assignee:
            [DO NOT USE] Backlog - Sharding Team
            Reporter:
            Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: