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

printShardingStatus.js races with ShardingUptimeReporter thread

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial - P5
    • Resolution: Fixed
    • None
    • 3.6.13, 4.0.7, 4.1.7
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • 16

    Description

      Test checks for entries in config.mongos which are populated on a background thread by ShardingUptimeReporter and can miss some expected entries if it checked too soon. It's easy to make a test fail by simply putting a sleep inside the background thread.

      Attachments

        Activity

          People

            randolph@mongodb.com Randolph Tan
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: