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

Log commands together with errors upon plan executor failures

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Fully Compatible
    • v4.4, v4.2, v4.0, v3.6
    • 0

      When the plan executor fails for some commands, starting from SERVER-41996 an error message is logged before propagating the exception (e.g. in those snippets for distinct and find).

      While upon some failures it's easy to trace back which command caused the exception, tests with no sufficient logging or concurrent commands are making it difficult to map specific commands to errors.

      Logging the original command together with the error message would allow to identify problems in a fast and effective way

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: