Mongo Shell exits with InvalidOptions error when using URI compressors parameter

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Frederick Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: