-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Storage Execution
-
Fully Compatible
-
v6.3, v6.0, v5.0
-
Execution Team 2023-03-20, Execution Team 2023-04-03, Execution Team 2023-04-17
-
(copied to CRM)
Due to the way we generate time series bucket _id values, it's possible that some inserts to time series collection will see unexpected DuplicateKey errors. For the most part, these errors are transient and retrying the insert will succeed. Some of our users already use this workaround. We can automate it by automatically retrying the the operation internally.
The only caveat is that in some degenerate cases, the retry may not succeed, or may only succeed with very low probability, so we should limit the number of retries (unlike a WriteConflict where we'll retry indefinitely).
- related to
-
SERVER-79397 Fix and test logic to internally retry time series inserts on OID collision
- Closed