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

Add instrumentation to note long running user provided callbacks on IO threads

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Networking
    • None
    • Fully Compatible
    • Platforms 2017-04-17, Platforms 2017-08-21

    Description

      Right now there is no protection against network layer worker threads being blocked by misbehaving callbacks. We can't easily prevent this behavior, but it would be possible to add instrumentation that would note (or, more aggressively, fail an invariant) if any callback out of the ASIO network layer ran beyond a certain configurable threshold.

      If those warnings or invariants trip, it gives a good indication that a blocking callback may exist.

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: