Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-825

MongoParseError: zstd is not a valid compression mechanism

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: CLI Module, Connectivity
    • Labels:
      None
    • 5

      Problem Description

      Steps to Reproduce

      My MongoDB Atlas cluster is configured with a network compressor value of zstd. We officially support zstd as a network compression method since v4.2 as stated in our documentation

       

      Confirming the Atlas cluster network compression: 
      db._adminCommand({getCmdLineOpts: 1}).parsed.net.compression
      >>> { "compressors" : "snappy,zstd,zlib" }

       

      mongosh --version   // confirming mongosh version
      >>> 0.14.0

       

      mongosh "mongodb+srv://zstd.g3mcy.mongodb.net/?compressors=zstd" --username main_user --password bryanzelle

      >>> MongoParseError: zstd is not a valid compression mechanism

      Expected Results

      Be able to connect to my Atlas Cluster. 

      Org:  SA-NORTHAMERICA-CENTRAL

      Project: BRYAN-ZELLE

      Cluster:  zstd

       

      As you can see, this same command using zlib as the compressor value works perfectly, but zstd fails: 

      mongosh "mongodb+srv://zstd.g3mcy.mongodb.net/?compressors=zlib" --username main_user --password bryanzelle 
      >>> Current Mongosh Log ID: 60c2bd2fd7c287bee22fda35

      >>> Enterprise atlas-q8j1bk-shard-0 [primary]>

       

      Actual Results

      MongoParseError: zstd is not a valid compression mechanism

      Additional Notes

        1. image-2021-06-10-21-38-25-774.png
          34 kB
          Bryan Zelle
        2. screenshot-1.png
          17 kB
          Bryan Zelle

            Assignee:
            Unassigned Unassigned
            Reporter:
            bryan.zelle@mongodb.com Bryan Zelle
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: