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

printShardingStatus uses group/JS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: 2.6.12, 2.7.2
    • Component/s: Shell
    • Labels:
    • Backwards Compatibility:
      Major Change
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      Server 2.7.1, Server 2.7.2
    • Linked BF Score:
      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

              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: