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

Use WriteConcern.SAFE as default for MongoDB connection #46

Merged
merged 1 commit into from
Dec 27, 2012

Conversation

vshchukin
Copy link
Contributor

Hi,

We are using nosql-unit to insert/read test data with remote MongoDB.
But data defined in @UsindDataSet sometimes is not available in test for reading.
The problem is that default WriteConcern in Java driver does not guarantee this - so I think it's better to always use WriteConcern.SAFE .

@buildhive
Copy link

Alex Soto » nosql-unit #43 SUCCESS
This pull request looks good
(what's this?)

@lordofthejars
Copy link
Owner

Thank you very much first of all for using NoSQLUnit and second one for helping me in improving it because you are right with the write concern problem. Tomorrow I will merge your changes.
Again thank you so much for your interest in project, and if you have any request don't hesitate to ask me. Also let me tell you that in two or three weeks I will release a version for testing MongoDB replication (shards, master/slave and replication sets.)

lordofthejars added a commit that referenced this pull request Dec 27, 2012
Use WriteConcern.SAFE as default for MongoDB connection
@lordofthejars lordofthejars merged commit d15f415 into lordofthejars:master Dec 27, 2012
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.

None yet

3 participants