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

Mongo Shell exits with InvalidOptions error when using URI compressors parameter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.3.1, 4.2.2
    • Component/s: Shell
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2
    • Steps To Reproduce:
      Hide

      Run mongo 'mongodb://user@host/db?compressors=snappy' (or any other values for compressors except for 'disabled', which is the default value).

      Show
      Run mongo 'mongodb://user@host/db?compressors=snappy' (or any other values for compressors except for 'disabled', which is the default value).
    • Sprint:
      Dev Tools 2019-10-21

      Description

      Mongo Shell exits with

      InvalidOptions: ERROR: Cannot specify different network message compressors in connection URI and as a command-line option

      when using 'compressors' URI parameter, unless --networkMessageCompressors is given at the same time with same value.

      I was able to reproduce this issue using shell 4.1.9, 4.1.13 and 4.2.0 but not 4.1.7. After quickly going through the commits between r4.1.7 and r4.1.9, I guess this is possibly related to 2c0bebbfe5.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: