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: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Networking & Observability

      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:
            Unassigned Unassigned
            Reporter:
            erin.mcnulty@mongodb.com Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: