[SERVER-69429] Missing checks in collMod for shard key and unique index Created: 02/Sep/22 Updated: 29/Oct/23 Resolved: 13/Oct/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Catalog, Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 6.1.1, 6.0.3, 6.2.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Frederic Vitzikam | Assignee: | Yuhong Zhang |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Backport Requested: |
v6.1, v6.0
|
||||||||||||||||||||
| Sprint: | Execution Team 2022-10-17 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
The following does not fail:
Unlike trying to create the index on "a" with {unique: true} after the shardCollection which would give
I found this as part of the work on unlike topologies for cluster to cluster replication (Mongosync). |
| Comments |
| Comment by Githook User [ 21/Oct/22 ] |
|
Author: {'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}Message: (cherry picked from commit 12165e687bc06fbf5df03bfef5d570e9dae7b0e9) |
| Comment by Githook User [ 21/Oct/22 ] |
|
Author: {'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}Message: (cherry picked from commit bef1987c88f68d932da97291dd95868b9dd54d2c) |
| Comment by Githook User [ 19/Oct/22 ] |
|
Author: {'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}Message: (cherry picked from commit 12165e687bc06fbf5df03bfef5d570e9dae7b0e9) |
| Comment by Githook User [ 19/Oct/22 ] |
|
Author: {'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}Message: (cherry picked from commit bef1987c88f68d932da97291dd95868b9dd54d2c) |
| Comment by Githook User [ 13/Oct/22 ] |
|
Author: {'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}Message: |
| Comment by Githook User [ 13/Oct/22 ] |
|
Author: {'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}Message: |