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

Command::execCommand should let sharding StaleConfig exceptions unroll up to receivedQuery

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc4
    • Component/s: Internal Code, Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Epic Link:
    • Sprint:
      Platform D (12/11/15)

      Description

      In mongodb version 3.2, as part of the changes to support OP_COMMAND and metadata, we are now catching all exceptions in Command::execCommand. However, this breaks backwards compatibility with older versions of mongos, which expect the ResultFlag_ShardConfigStale bit to be set on the response from the command (which is being run as a query).

      Because of this, SendStaleConfigException should just be passed through by the command execution code.

      Without this fix we are breaking backwards compatibility with mongos 3.0 for the findAndModify command (and possibly aggregation).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: