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

Print stack trace when ReplSetTest.getMaster() fails

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.0-rc1
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Fully Compatible

      It is hard to debug some test failures because there isn't enough information logged to see where a failure happened.

      The ReplSetTest JavaScript module calls its own getMaster() routine from many places, and users of ReplSetTest also call it. Because it is not based on any of the assert() functions, it prints no stack trace when it throws an exception, so there is no way to tell what function was calling it when it failed.

      getMaster() should print a stack trace on failure to help debugging.

            Assignee:
            tad Tad Marshall
            Reporter:
            tad Tad Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: