sh.enableBalancing() requires an argument, silently no-ops with no argument

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.8.0-rc0
    • Affects Version/s: 2.5.2
    • Component/s: Shell, Usability
    • None
    • Minor Change
    • ALL
    • Hide

      mongos> sh.enableBalancing()
      mongos> sh.disableBalancing()

      Show
      mongos> sh.enableBalancing() mongos> sh.disableBalancing()
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      sh.enableBalancing (and disableBalancing) take collection name as an argument. If nothing is passed in, it does not error (probably should!) and then tries to update nobalance flag for collection named "" which of course doesn't exist.

      Since it's easy for a user to assume this command enables/disables global cluster balancing, the no op and no warning or error is somewhat dangerous and misleading.

            Assignee:
            Matt Kangas (Inactive)
            Reporter:
            Asya Kamsky
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: