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

explain shell helpers should retry using $explain if explain command fails on a mixed version sharded cluster

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc1
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None

      Suppose you have the following configuration:

      • version 2.8 mongo shell
      • version 2.8 mongos
      • version 2.6 shards

      Based on the wire version reported by mongos, the shell will notice that the mongos has the explain command available. It will issue explains using the explain command rather than falling back to the $explain query flag.

      However, the explain command on mongos explicitly fails unless all shards are version 2.8. This means that it is impossible to run explain with the above configuration. The shell should retry using legacy $explain in order to support explains in this configuration.

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: