[SERVER-62431] [POC] Enforce uniqueness constraint early during collMod converting index to unique Created: 07/Jan/22 Updated: 28/Jan/22 Resolved: 28/Jan/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Yuhong Zhang | Assignee: | Yuhong Zhang |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Sprint: | Execution Team 2022-01-24, Execution Team 2022-02-07 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Currently we install a concurrent writes tracker while scanning the index for duplicates while only holding an IX lock. We would like to reject those concurrent writes if they have any violations on the uniqueness constraint right away instead of letting collMod handle them. |