Another issue which needs addressing is the passing of driver options. At the moment only a limited set of driver options can be passed to the driver. This leads to very high timeouts in the DatastoreInitializationTest. In this case serverSelectionTimeout should have a lower value then the default 30000ms.
To allow passing of driver settings we discussed the following approach:
-
Create a property namespace hibernate.ogm.mongodb.driver.. For '' any of the valid driver option names can be used with an appropriate value
-
Implementation wise we have then two options
-
collect all options and other connection details and use the MongoClientURI to parse the connections settings + options
-
use reflection to apply the options to MongoClientOptions
|