[SERVER-83370] PrepareUnique:true for time-series collections should error Created: 16/Nov/23  Updated: 31/Jan/24  Resolved: 31/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc2

Type: Bug Priority: Major - P3
Reporter: Damian Wasilewicz Assignee: Damian Wasilewicz
Resolution: Fixed Votes: 0
Labels: auto-reverted
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.3, v7.2, v7.0, v6.0
Sprint: Execution Team 2024-01-22, Execution Team 2024-02-05
Participants:
Linked BF Score: 0

 Description   

PrepareUnique is used to prepare for unique index conversion, and time-series collections do not support unique indexes, so modifying an on a time-series collection through collMod with prepareUnique set to true should fail with a clear error message. At the moment this command is allowed.



 Comments   
Comment by Githook User [ 31/Jan/24 ]

Author:

{'name': 'Damian Wasilewicz', 'email': '33820523+DamianWasilewicz@users.noreply.github.com', 'username': 'DamianWasilewicz'}

Message: SERVER-83370: Core ServerSERVER-83370 PrepareUnique:true for time-series collections should error (#18535)

GitOrigin-RevId: a9b3c6a93a4a72c7e97331b52c8925efb56d0294
Branch: master
https://github.com/mongodb/mongo/commit/a27cf4ddf95a98330c317459a68500101bf7b337

Comment by Githook User [ 21/Jan/24 ]

Author:

{'name': 'auto-revert-processor', 'email': 'dev-prod-dag@mongodb.com', 'username': ''}

Message: Revert "SERVER-83370: PrepareUnique:true for time-series collections should error (#17981)"

This reverts commit 208110eafeaee5a396c81c2c406415e4aa5265ad.

GitOrigin-RevId: 20e9de87ea7e8e95cfe48e8f530a94ec3d09273e
Branch: master
https://github.com/mongodb/mongo/commit/da2ff869b9a36ec5f31ad82dafd7bc8a2a501ba2

Comment by Githook User [ 20/Jan/24 ]

Author:

{'name': 'Damian Wasilewicz', 'email': '33820523+DamianWasilewicz@users.noreply.github.com', 'username': 'DamianWasilewicz'}

Message: SERVER-83370: PrepareUnique:true for time-series collections should error (#17981)

GitOrigin-RevId: 208110eafeaee5a396c81c2c406415e4aa5265ad
Branch: master
https://github.com/mongodb/mongo/commit/87a74aad462c47d3f34d333280b0992f98295ca5

Generated at Thu Feb 08 06:51:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.