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

printShardingStatus uses group/JS

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

      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@mongodb.com Ramon Fernandez Marina
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: