Skip to content

DATAMONGO-1620 - Add server-selection-timeout to XML MongoClientOptions config. #449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

christophstrobl
Copy link
Member

This change allows in combination with a MongoDB Java Driver 3.x setting the serverSelectionTimeout on MongoClientOptions via the server-selection-timeout XML attribute.

The attribute is ignored when set using a 2.x MongoDB driver.

This change should be ported to 1.10.x (the namespace xsd (1.10.2) is already set up for it).
For 2.x the server-selection-timeout should be added leaving out the reflection fluff required in MongoClientOptionsFactoryBean for1.x.

christophstrobl and others added 3 commits March 8, 2017 12:33
…tOptions using MongoClientOptionsFactoryBean.

Prepare issue branch.
…ns config.

We now allow server-selection-timeout attribute on MongoClientOptions XML configuration for a MongoDB 3.x client.
Use Integer.MIN_VALUE as placeholder for unset values to allow setting zero (immediately) and -1 (indefinite wait) server selection timeouts.
mp911de pushed a commit that referenced this pull request Mar 13, 2017
…ns config.

We now allow server-selection-timeout attribute on MongoClientOptions XML configuration for a MongoDB 3.x client.

Original pull request: #449.
mp911de added a commit that referenced this pull request Mar 13, 2017
Fix test method name. Add JavaDoc.

Original pull request: #449.
mp911de pushed a commit that referenced this pull request Mar 13, 2017
…ns config.

We now allow server-selection-timeout attribute on MongoClientOptions XML configuration for a MongoDB 3.x client.

Original pull request: #449.
mp911de added a commit that referenced this pull request Mar 13, 2017
Use Integer.MIN_VALUE as placeholder for unset values to allow setting zero (immediately) and -1 (indefinite wait) server selection timeouts. Fix test method name. Add JavaDoc.

Original pull request: #449.
mp911de pushed a commit that referenced this pull request Mar 13, 2017
…ns config.

We now allow server-selection-timeout attribute on MongoClientOptions XML configuration for a MongoDB 3.x client.

Original pull request: #449.
mp911de added a commit that referenced this pull request Mar 13, 2017
Use Integer.MIN_VALUE as placeholder for unset values to allow setting zero (immediately) and -1 (indefinite wait) server selection timeouts. Fix test method name. Add JavaDoc.

Original pull request: #449.
@mp911de
Copy link
Member

mp911de commented Mar 13, 2017

That's merged, polished and ported to the according branches. Removed reflection access for 2.0.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants