-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: Configuration
To pass a new client setting (maxAdaptiveRetries) to all operations that execute commands retryable under the read/write retry policies, one needs to change >1000 lines in >100 files. This is unsustainable.
An obvious solution is that instead of passing individual settings, we could pass the whole MongoClientSettings everywhere any setting is needed. Given that no setting is required, the tests that currently pass only a few individual settings will still be able to do so via MongoClientSettings by setting only the settings of interest.
This way, supporting a new setting that needs to be accessed as deep as inside of an operation, becomes trivial. However, there will no longer be visibility on what settings are used by a specific class at a point where it is instantiated.
- related to
-
JAVA-6060 Introducing InternalMongoClientSettings to Reduce global mutable state
-
- In Code Review
-