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

Adapt Session API to gracefully finish and record stream termination status

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Networking & Observability
    • Fully Compatible
    • Egress gRPC 2025-01-31, Egress gRPC 2025-02-14
    • 5

      Right now in gRPC, every call to end() will result in the termination status being set to CallbackCanceled. However, to enable better diagnostics and metrics of stream's status, it would be better to call asyncFinish() and then update the termination status based on that rather than just cancelling.

      We could add a new function to the Session API, named something like asyncEnd, that gracefully finishes a session and allows us to have better visibility into the termination status of streams.

            Assignee:
            erin.mcnulty@mongodb.com Erin McNulty
            Reporter:
            erin.mcnulty@mongodb.com Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: