[DOCS-5076] Comment on: "manual/tutorial/merge-chunks-in-sharded-cluster.txt" Created: 23/Mar/15  Updated: 30/Oct/23  Resolved: 09/Jan/16

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Jason Ford Assignee: Kyle Suarez
Resolution: Done Votes: 0
Labels: collector-298ba4e7, sharding
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

All

Location: http://docs.mongodb.org/manual/tutorial/merge-chunks-in-sharded-cluster/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36
Referrer: https://www.google.com/
Screen Resolution: 1920 x 1080
repo: docs
source: tutorial/merge-chunks-in-sharded-cluster


Issue Links:
Related
related to SERVER-21976 dataSize cmd should ignore current da... Closed
Participants:
Days since reply: 7 years, 29 weeks ago

 Description   

The command to determine if a chunk is empty needs to be run on the database in which the chunk resides. The documentation does not mention this, and it should! Would have saved me a good deal of time .

EX:
db.runCommand({
"dataSize": "test.users",
"keyPattern":

{ username: 1 }

,
"min":

{ "username": "user36583" }

,
"max":

{ "username": "user43229" }

})

Needs to be run while in the context of the "test" database.



 Comments   
Comment by Emily Hall [ 27/Jul/16 ]

Closed for housekeeping on 7/27/2016 by Emily Hall.
If you require additional support, please open a new ticket for prioritization.
Thanks,
Emily

Comment by Kyle Suarez [ 09/Jan/16 ]

fordjp, thanks again for catching this one! I've made a new note of this in the documentation, and it should be published and live within the next couple of days at the latest.

Best,
Kyle

Comment by Githook User [ 08/Jan/16 ]

Author:

{u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'kyle.suarez@mongodb.com'}

Message: DOCS-5076 must use database before dataSize cmd

When connected to a mongos, the `dataSize` command must be run in the context of
the database containing the collection to measure.

See SERVER-21976.

Signed-off-by: Andrew Aldridge <i80and@foxquill.com>
Branch: master
https://github.com/mongodb/docs/commit/0ad138f255554ff9b02727027f7cd156860c16fa

Comment by Jason Ford [ 21/Dec/15 ]

That's awesome! Thanks for the update.

On Mon, Dec 21, 2015 at 2:14 PM, Kyle Suarez (JIRA) <jira@mongodb.org>

Comment by Kyle Suarez [ 21/Dec/15 ]

Hi fordjp,

Thanks for the report! For now, we're working on adding a note to clarify that the dataSize command needs to be run when the current database matches the database of the sharded collection you're trying to measure. I have also opened SERVER-21976, which would make it so that the command works without having to switch the active database.

Cheers,
Kyle

Generated at Thu Feb 08 07:49:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.