[SERVER-8965] DistributedLock maybe concurrently insert some records with the same "_id" Created: 13/Mar/13  Updated: 10/Dec/14  Resolved: 13/Mar/13

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.0.7
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: chensi Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

the _id column not unique index in collection config.locks , when two client concurrently acquire the same lock, Two same record would be inserted



 Comments   
Comment by Eliot Horowitz (Inactive) [ 13/Mar/13 ]

_id is always unique, so this is impossible.
One of the inserts will fail.

Generated at Thu Feb 08 03:18:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.