-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Configuration
-
None
Consider the following code:
MongoClientOptions.Builder builder = MongoClientOptions.builder() .compressorList(asList(MongoCompressor.createZlibCompressor())); MongoClientURI uri = new MongoClientURI("mongodb://localhost/", builder); System.out.println(builder.build().getCompressorList()); System.out.println(uri.getOptions().getCompressorList());
The expected output is:
[MongoCompressor{name='zlib', properties={}}] [MongoCompressor{name='zlib', properties={}}]
The actual output is:
[MongoCompressor{name='zlib', properties={}}] []