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

remove retrying on stale shardVersion errors from cluster_aggregate.cpp

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 3.5.13
    • Fix Version/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-sharding Backlog - Sharding Team
              Reporter:
              esha.maharishi Esha Maharishi
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: