-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 6.1.0-rc0, 6.2.0-rc0
-
Component/s: None
-
None
-
Storage Execution
-
Fully Compatible
-
ALL
-
v6.3, v6.0
-
Execution Team 2023-02-20, Execution Team 2023-02-06, Execution Team 2023-03-06
-
14
The steps that leads to this issue are the following:
- Start timeseries collection creation on the replset primary node with binary 6.0
- Stepdown happens here after creating the bucket collection but before creating the associated view.
- A new primary of replicaset with binary 6.1 or later is elected
- Retry the same create collection
The second create will fail with:
NamespaceExists: Bucket Collection already exists
And it will leave a bucket collection without the associated view.
The reason is that the second create operation will not find the view but it will find the bucket collection, then it will try to see if collectionOptions of the existing bucket collection match the options from the second create operation and it will fail because the validator created in 6.0 is different from the one of later versions. In fact in SERVER-68129 we added the control.count field.
- is caused by
-
SERVER-68129 Add the field `control.count` to the schema validation for bucket collections
- Closed