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

MongoParseError: zstd is not a valid compression mechanism

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting (Blocked)
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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

        Attachments

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

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              bryan.zelle Bryan Zelle
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: