Details
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
- duplicates
-
SERVER-6348 Create ChunkStats command to replace the sh.status() chunk portion
-
- Closed
-
- is duplicated by
-
SERVER-20251 sh.status() returns incomplete result.
-
- Closed
-
- is related to
-
SERVER-14968 sh.status(): order shards for sharded collections stats
-
- Closed
-