[JAVA-1748] Mongo not failing for second request when inserting unique values Created: 07/Apr/15  Updated: 11/Sep/19  Resolved: 07/Apr/15

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Lee Collins [X] Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I am using Mongo as a system for locking resources. Multiple nodes will try to create a lock in Mongo but the second node does not fail as expected.
We use WriteConcern: SAFE. Is there some other WriteConcern we should use?



 Comments   
Comment by Jeffrey Yemin [ 07/Apr/15 ]

Hi Lee,

This type of question is more appropriate for our mongodb-user public forum, as it's more likely to be seen there by a wider group of users.

As such, I've closed this, but please do open an issue if you've found a specific problem with the Java driver or have an enhancement request.

Regards,
Jeff

Generated at Thu Feb 08 08:55:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.