printShardingStatus uses group/JS

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 2.6.12, 2.7.2
    • Affects Version/s: 2.6.1
    • Component/s: Shell
    • Major Change
    • ALL
    • Server 2.7.1, Server 2.7.2
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      sh.status() aka printShardingStatus still uses the old MR/group command

      res = configDB.chunks.group( { cond : { ns : coll._id } , key : { shard : 1 },
           reduce : function( doc , out ){ out.nChunks++; } , initial : { nChunks : 0 } } );
      

      with aggregation readily available without JS, there is no reason to leave this using group and being broken for users who turn off server side scripting for security reasons.

            Assignee:
            Ramon Fernandez Marina
            Reporter:
            Asya Kamsky
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: