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

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

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • Query Execution

      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.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            5 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated: