Skip to content

Not able to set serverSelectionTimeout on MongoClientOptions using MongoClientOptionsFactoryBean [DATAMONGO-1620] #2527

Closed
@spring-projects-issues

Description

@spring-projects-issues

Stéphane PIEL opened DATAMONGO-1620 and commented

Hello,
I'm using spring-data-mongo XML namespace to configure my mongo-client used in my application. I'd like to set the serverSelectionTimeout attribute of the underlying MongoClientOptions. But there is no way to set this attribute using the xml namespace. So that we have to deal with the default value (30s) of the plain MongoClientOptions (which is way too long in our use-case)
Could it be possible to add a server-selection-timeout attribute on XML client-options tag / serverSelectionTimeout method on MongoClientOptionsFactoryBean , so that this timeout can be set ?
Thanks


Affects: 1.10 GA (Ingalls)

Issue Links:

  • DATAMONGO-1769 Alternative for auto-connect-retry="true" in spring mongo 1.10
    ("is duplicated by")

Referenced from: pull request #449

Backported to: 1.10.2 (Ingalls SR2)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions