[SERVER-82330] Ability to decode change stream resume tokens in JS tests Created: 19/Oct/23 Updated: 20/Oct/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Romans Kasperovics | Assignee: | Backlog - Query Execution |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Execution
|
| Participants: |
| Description |
|
Currently, we cannot decode change stream resume tokens in our JavaScript tests. Resume token contain a bunch of information such as timestamp, version, object IDs, transaction-related info etc., and it is key-string encoded. It would be very useful to decode this information for assertion and debugging. We can either port an existing TypeScript or C++ code to JavaScript, or expose/link the relevant server code function to the JavaScript environment in mongo (old) shell that we use for testing. |