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

Allow callstack generator to print in-flight operations

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • QO 2024-02-05, QO 2024-02-19, QO 2024-03-04, QO 2024-03-18, QO 2024-04-01

      Logging information helps us to find the root cause queries to confirm and reproduce an underlying bug. In an incident like SERVER-83091 where there's a thread causing the mongod to hang indefinitely, we would like to know the shape of the underlying query causing the issue and how to reproduce that consistently within a short time.

      Currently, we have logging for slow queries and printAllThreadStacks for this purpose. However, the former one only prints upon the completion of a query, while the latter prints the stack trace with limited information about the query shapes.

      This ticket proposes to log the in-progress queries whenever printAllThreadStacks is called such that we are able to see the underlying queries contributing the those stack traces.

            Assignee:
            Unassigned Unassigned
            Reporter:
            chii.huang@mongodb.com Chi-I Huang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: