[SERVER-56912] Inconsistent output format of sh.status() and printShardingStatus() commands Created: 13/May/21  Updated: 27/Oct/23  Resolved: 13/May/21

Status: Closed
Project: Core Server
Component/s: Sharding, Shell
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Antonio Fuschetto Assignee: Antonio Fuschetto
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

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
  [...]



 Comments   
Comment by Antonio Fuschetto [ 13/May/21 ]

Fix included in SERVER-56875.

Generated at Thu Feb 08 05:40:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.