Inconsistent output format of sh.status() and printShardingStatus() commands

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Sharding, Shell
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Information like Currently running: yes/no is not correctly printed starting from 5.0 branch and other messages contain double spaces instead of a single one.

      In details, the current commands output is:

      mongos> printShardingStatus()
      --- Sharding Status ---
        [...]
        autosplit:
              Currently enabled: no
        balancer:
              Currently enabled:  no
              yes
              Failed balancer rounds in last 5 attempts:  0
              Migration Results for the last 24 hours:
                       No recent migrations
        [...]
      

      Whereas, in the 4.4 branch, these commands print:

      mongos> printShardingStatus()mongos> printShardingStatus()
      --- Sharding Status ---
        [...]
        autosplit:
              Currently enabled: no
        balancer:
              Currently enabled:  no
              Currently running:  yes
              Failed balancer rounds in last 5 attempts:  0
              Migration Results for the last 24 hours:
                       No recent migrations
        [...]
      

              Assignee:
              Antonio Fuschetto
              Reporter:
              Antonio Fuschetto
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: