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

Fix timeout error message in the awaitBalancerRound helper

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • 1

      In the awaitBalancerRound helper we are logging the following error message when a timeout occurs. The issue is, that currentStatus is undefined at the time it is passed to the argument of the assert.soon function. Since its converted to a string at the moment assert.soon is invoked, we will always print  Latest balancer status:  undefined, even though currentStatus is being updated between the moment when assert is called, and the point when the timeout occurs.

      We should either update the error message to not involve currentStatus, or make sure that it is evaluated at the moment where we see the timeout occur.

            Assignee:
            Unassigned Unassigned
            Reporter:
            robert.sander@mongodb.com Robert Sander
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: