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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0-rc1
    • Component/s: Shell
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: