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

Mongo Shell exits with InvalidOptions error when using URI compressors parameter

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1, 4.2.2
    • Affects Version/s: 4.2.0
    • Component/s: Shell
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • 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).
    • Dev Tools 2019-10-21

      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.

            Assignee:
            henrik.edin@mongodb.com Henrik Edin
            Reporter:
            frederick888@tsundere.moe Frederick Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: