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

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

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Networking
    • Labels:
      None
    • Fully Compatible
    • Platforms 2017-04-17, Platforms 2017-08-21

      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.

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

              Created:
              Updated:
              Resolved: