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

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

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

      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@mongodb.com Antonio Fuschetto
            Reporter:
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: