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

remove retrying on stale shardVersion errors from cluster_aggregate.cpp

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

      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:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: