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

Shell sharding helpers should give feedback on success

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.9, 3.3.8
    • Component/s: Sharding, Shell
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Backport Completed:
    • Sprint:
      Sharding 15 (06/03/16)

      Description

      SERVER-22449 means that failures in these functions will now correctly cause exceptions to be raised.

      However, it is useful for users and support to receive positive feedback when the operations succeed.

      This is so that success can be known immediately after the function has run, without needing to determine whether or not the user is running a post-SERVER-22449 version of the shell (ie. whether or not there would have been an exception).

      For most of the sh.* functions, this just means adding return in front of the assert.writeOK. startBalancer and stopBalancer will likely be a little less straightforward.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: