Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1327

sh.status() should show full list of tag ranges in verbose mode only

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.15
    • Affects Version/s: None
    • Component/s: sh
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Needed
    • Hide

      When sh.status() returns more than 20 tags or chunks, we cut the list after 20 and tell there are more to return in the verbose mode.

      Show
      When sh.status() returns more than 20 tags or chunks, we cut the list after 20 and tell there are more to return in the verbose mode.
    • Iteration Edmontonia, Iteration Lambeosaurus, Iteration Pterodactyl, Iteration Fortitudo, Iteration Gamma Rays

      I was doing some testing with sharding zones - specifically with large number of tags created. It seems that regardless of the number of tag ranges, sh.status() in non-verbose mode always outputs the full list of tags. I.e. with hundreds of tag ranges defined the output gets enormous. With thousands of tag ranges, running sh.status() takes much longer than usual. Thus if a user wants to see some basic details about the mongos, balancer state and shards, sh.status() becomes pretty much useless.

      It seems reasonable to output full list of tag ranges in verbose mode only, just as we do it for chunks.

            Assignee:
            alena.khineika@mongodb.com Alena Khineika
            Reporter:
            dmitry.ryabtsev@mongodb.com Dmitry Ryabtsev
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: