Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-8598

compression: snappy and @mongodb-js/zstd modules not found

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.44.6, 1.44.7
    • Component/s: Connectivity
    • Environment:
      OS: Linux Any
      node.js / npm versions: node v22.12.0 npm 10.9.0
      Additional info: nvm-sh 0.40.1 mongodb-js/compass v1.44.7
    • Developer Tools

      Problem Statement/Rationale

      Standard Mongo URL mongodb://host:port/?tls=true&compressors=zstd,snappy,zlib works with many mongo driver (js, python, c, etc.) for all 3 compression methods. But does not work with Compass that Compass reported modules snappy and @mongodb-js/zstd not found. Only zlib works.

       

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      Steps to Reproduce

       

      # install node
      curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/0.40.1/install.sh" | bash
      source ~/.bashrc
      nvm install --lts
      node -v
      npm -v
      # clone compass source
      git clone https://github.com/mongodb-js/compass -b v1.44.7 --depth 1
      cd compass
      npm install --save @mongodb-js/zstd@^1.2.2
      npm install --save snappy@^7.2.2
      # go to actual compass app packages
      cd packages/compass
      npm install --save @mongodb-js/zstd@^1.2.2
      npm install --save snappy@^7.2.2
      cd ../../
      # now build at the main app directory
      npm run bootstrap
      HADRON_SKIP_INSTALLER=true HADRON_DISTRIBUTION='compass-isolated' DEBUG=hadron* npm run package-compass
      # compass build is available at packages/compass/dist/
      [...]
      # run compass using either format below, and it will not work
      mongodb://host:port/?tls=true&compressors=zstd
      mongodb://host:port/?tls=true&compressors=zstd
      

       

      Expected Results

      Compass should work for snappy and zstd compression

      Actual Results

      Compass only works with zlib compression

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            Unassigned Unassigned
            Reporter:
            asdfasfwe24sf@outlook.com joe-lucas N/A
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: