Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-82330

Ability to decode change stream resume tokens in JS tests

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2024-10-28, QE 2024-11-11

      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.

            Assignee:
            lee.maguire@mongodb.com Lee Maguire
            Reporter:
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: