[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. |