[SERVER-64103] Donor does not create ttl index when shard split feature flag is disabled Created: 01/Mar/22 Updated: 29/Oct/23 Resolved: 03/Mar/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mathis Bessa | Assignee: | Mathis Bessa |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Sprint: | Server Serverless 2022-03-07 | ||||
| Participants: | |||||
| Linked BF Score: | 184 | ||||
| Description |
|
When we added the tryForget command we added the creation of a TTLIndex for garbage collection. However in multiversion tests it can happen that one version of the ShardSplitDonorService which contains the feature will create the index and another version without the feature will not create the index. To solve this compatibility issue we should protect that index creation with the shard split feature flag and only create the index when that flag is enabled. We should implement a logic similar to the tenant migration donor service code or simply use the feature flag check like we already do here. |
| Comments |
| Comment by Githook User [ 03/Mar/22 ] |
|
Author: {'name': 'mathisbessamdb', 'email': 'mathis.bessa@mongodb.com', 'username': 'mathisbessamdb'}Message: |