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

printShardingStatus uses group/JS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 2.6.1
    • 2.6.12, 2.7.2
    • Shell
    • Major Change
    • ALL
    • Server 2.7.1, Server 2.7.2
    • 0

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              ramon.fernandez@mongodb.com Ramon Fernandez Marina
              asya.kamsky@mongodb.com Asya Kamsky
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: