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

Only schedule AsyncDBClient cancellation callbacks on the reactor when necessary

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • Fully Compatible
    • Networking & Obs 2024-09-30
    • 200

      AsyncDBClient uses the reactor to schedule the cancellation handling callbacks, including when the CancellationSource goes out of scope without having been cancelled. This results in a task per network operation being scheduled on the reactor, most of which do nothing. It appears this results in a 95p latency regression in high-concurrency workloads. We should update these to only schedule callbacks on the reactor when an actual cancellation occurs.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: