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

Consider hashing eventIdentifier in resume token

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution

      The eventIdentifier field in a change stream resume token is currently encoded as the raw documentKey or operationDescription of the associated event. It is therefore of indeterminate size, and since resume tokens are repeated several times in a batch of results (_id, sort key, postBatchResumeToken) this places some constraints on the maximum size of an event.

      For the telemetry and query settings projects, we have opted to encode query shape as a SHA-256 hash, considering this sufficient to avoid collisions. We should consider doing the same for eventIdentifier.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            bernard.gorman@mongodb.com Bernard Gorman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: