vert-x3 / vertx-mongo-client

Mongo Client for Eclipse Vert.x
http://vertx.io
Apache License 2.0
58 stars 98 forks source link

Compression settings don't work. #296

Closed siwee closed 1 year ago

siwee commented 1 year ago

Questions

Compression settings don't work.

Version

4.3.2

Context

        JsonObject config = new JsonObject();
        config.put("connection_string", "mongodb://root:root@127.0.0.1:37171,127.0.0.1:37172/?compressors=snappy")
            .put("useObjectId", true)
            .put("compressors", "snappy")
            .put("waitQueueTimeoutMS", Duration.ofDays(1).toMillis())
            .put("maxIdleTimeMS", 200000)
            .put("db_name", "statistic")
            .put("maxPoolSize", 6)
            .put("minPoolSize", 1);

        mongoClient = MongoClient.create(vertx, config);
        return mongoClient;

compressors=snappy does't work.

Do you have a reproducer?

A reproducer is a simple project hosted on GitHub (or another forge supporting git clone operation) that has a build file that can be executed to reproduce the issue.

Reproducers are very helpful for contributors and will likely help them fixing your bug faster.

Steps to reproduce

  1. ...
  2. ...
  3. ...
  4. ...

Extra