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

Display whether migration is allowed/permitted for a collection.

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: sh
    • None
    • None
    • Developer Tools

      Currently sh.status() displays if [balancing](https://www.mongodb.com/docs/manual/reference/method/sh.disableBalancing/) is enabled or disabled for a collection.

       There is another setting that also affects whether we can move data for a collection - via the setAllowMigrations command. Once this is set to false, we will set the field permitMigrations to false in config.collections. However, currently when we run sh.status(), there is no visibility on this state. It would be nice to display this as well.

      • Note that there is another field called allowMigrations which is used internally (SERVER-92546).
        We may check both fields permitMigrations and allowMigrations , then display migration as disabled if any of them is false.

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            linda.qin@mongodb.com Linda Qin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: