Ability to decode change stream resume tokens in JS tests

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Romans Kasperovics
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: