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

Add an expression to inspect the resume token of a change stream

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Aggregation Framework
    • Query Execution

    Description

      For diagnostic or scripting purposes, it might be useful to inspect the values of the different pieces of a resume token:

      • The collection's UUID
      • The timestamp of the change
      • The document key for the changed document

      Cases this has come up include:

      • Writing performance tests for change streams, wanting to inspect the cluster time of each change.
      • Debugging a test failure during development on SERVER-31447.

      A good way to expose this information might be through an aggregation expression.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            5 Vote for this issue
            Watchers:
            25 Start watching this issue

            Dates

              Created:
              Updated: