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

printShardingStatus.js races with ShardingUptimeReporter thread

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.13, 4.0.7, 4.1.7
    • Component/s: None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6
    • Linked BF Score:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: