[SERVER-59199] Support KeyStrings with RecordId strings longer than 127 bytes Created: 09/Aug/21 Updated: 29/Oct/23 Resolved: 23/Sep/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.1.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Louis Williams | Assignee: | Josef Ahmad |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | PM-2311-M1 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Sprint: | Execution Team 2021-09-20, Execution Team 2021-10-04 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 155 | ||||||||||||||||||||
| Description |
|
We currently support encoding RecordId strings at the end of a KeyString for secondary index support on clustered collections. The current encoding is designed to be read in reverse from the end of the string. The 1-byte size is appended at the end, preceded by the string contents. The current string encoding only supports encoding strings up to 127 bytes long, or what fits in 7 bits. Extend the encoding to support larger strings. Use the unused high bit as a continuation bit that indicates the presence of a preceding size byte. Continue encoding right-to-left until there are no more size bytes remaining with continuation bits. |
| Comments |
| Comment by Vivian Ge (Inactive) [ 06/Oct/21 ] |
|
Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you! |
| Comment by Githook User [ 23/Sep/21 ] |
|
Author: {'name': 'Josef Ahmad', 'email': 'josef.ahmad@mongodb.com', 'username': 'josefahmad'}Message: |
| Comment by Githook User [ 22/Sep/21 ] |
|
Author: {'name': 'Uladzimir Makouski', 'email': 'uladzimir.makouski@mongodb.com', 'username': 'umakouski'}Message: Revert " This reverts commit 5f5f4ede9151d2da43a92145e3b3b6f735a09d43. |
| Comment by Githook User [ 21/Sep/21 ] |
|
Author: {'name': 'Josef Ahmad', 'email': 'josef.ahmad@mongodb.com', 'username': 'josefahmad'}Message: |