Duplicate IDs in a Content Type Despite Unique Field Constraint #29459
Labels
dotCMS : Content Management
Epic
OKR : Core Features
Owned by Will
OKR : Customer Success
Owned by Arno
OKR : Customer Support
Owned by Scott
Priority : 2 High
Team : Falcon
Type : Defect
Parent Issue
No response
Problem Statement
We are experiencing duplicate IDs for a content type in dotCMS, even though the field is marked as unique. Simultaneous double inserts from different pods do not explain this issue, and it occurs even with the indexPolicy=WAIT_FOR setting.
An example scenario :
Occurrence:
A contentlet with ID XXXX has existed since YYYY.
In June, two new contentlets were created with the same ID.
In July, another contentlet with the same ID was created.
Suspected initial cause:
Index policy timing issues.
findings: The issue persists even with the WAIT_FOR policy.
Ideas proposed: Use database-level constraints or a custom script for unique values.
We need to identify why the unique constraint is not working as expected and how we can address this issue. Potential solutions include:
Adding a unique key constraint at the database level.
Implementing a custom script to generate unique values based on configurable fields.
Steps to Reproduce
https://dotcms.zendesk.com/agent/tickets/117183
This was happening specifically with a customer
Acceptance Criteria
We should avoid creating duplicate id's for unique fields in every possible scenario
dotCMS Version
23.10.24 LTS
Proposed Objective
Core Features
Proposed Priority
Priority 2 - Important
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
https://dotcms.zendesk.com/agent/tickets/117183
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
Tasks
Tasks
The text was updated successfully, but these errors were encountered: