Skip to content
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

URL's retryWrites query parameter is ignored when auto-configuring a reactive Mongo client #14032

Conversation

GreyTeardrop
Copy link
Contributor

Add retryWrites flag to set of flags propagated from connectionString
to ReactiveMongoClient.

Regular MongoClientFactory relies of MongoClientURI class that
propagates all flags in its getOptions() method.

@GreyTeardrop
Copy link
Contributor Author

The issue this PR attempts to fix affects Boot 2.0 and master branches. Should I target 2.0.x branch instead?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 9, 2018
@wilkinsona
Copy link
Member

Yes, please. It looks like a bug to me so should be fixed in 2.0.x.

Add retryWrites flag to set of flags propagated from connection string
to ReactiveMongoClient.

Regular MongoClientFactory relies of MongoClientURI class that
propagates all flags in its getOptions() method.
@GreyTeardrop GreyTeardrop changed the base branch from master to 2.0.x August 9, 2018 16:39
@GreyTeardrop
Copy link
Contributor Author

I've rebased commit on top of 2.0.x. Not sure how to trigger CI again though.

@mbhave
Copy link
Contributor

mbhave commented Aug 9, 2018

We don't have pull request builds for 2.0.x set up on CI. I've created an issue for that here.

@wilkinsona wilkinsona changed the title Propagate retryWrites flag to ReactiveMongoClient URL's retryWrites query parameter is ignored when auto-configuring a reactive Mongo client Aug 13, 2018
@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 13, 2018
@wilkinsona wilkinsona added this to the 2.0.x milestone Aug 13, 2018
@wilkinsona
Copy link
Member

Thanks very much, @GreyTeardrop. The proposed changes are now in both 2.0.x and master.

@wilkinsona wilkinsona closed this Aug 13, 2018
wilkinsona added a commit that referenced this pull request Aug 13, 2018
* gh-14032:
  Propagate retryWrites flag from connection URI to ReactiveMongoClient
@wilkinsona wilkinsona modified the milestones: 2.0.x, 2.0.5 Aug 13, 2018
@GreyTeardrop GreyTeardrop deleted the propagate-mongo-retrywrites branch August 13, 2018 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants