[SERVER-54956] Move away from using Bson_serialization_type “any” - CommitQuorum Created: 04/Mar/21 Updated: 29/Oct/23 Resolved: 12/Apr/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Moustafa Maher | Assignee: | Benety Goh |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Sprint: | Execution Team 2021-04-19 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Using Bson_serialization_type “any” means that idl compatibility checker script can’t do any type checking, since that logic is in cpp, so we want to disallow this type from parameters/reply fields as a result. However, lots of commands actually use it for valid reasons. src/mongo/db/create_indexes.idl
2- if the field can't be converted, or the change can't be done before 5.0.
|
| Comments |
| Comment by Githook User [ 11/Apr/21 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: |
| Comment by Louis Williams [ 05/Mar/21 ] |
|
The field should be easily convertible to a variant<int, string>. We just need to make sure we can maintain the same type-specific input validation. |