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

Remove print statements from assert.soon() calls in sharding/repl_monitor_refresh.js

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.3.9
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding 16 (06/24/16)
    • 0

    Description

      Printing in every iteration of assert.soon() is an anti-pattern that can cause slow or I/O bound test machines to fail to reach the goal state before the assert.soon() timeout expires. This patch adjusts sharding/repl_monitor_refresh.js to only print when assert.soon() fails.

      Attachments

        Activity

          People

            schwerin@mongodb.com Andy Schwerin
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: