[DOCS-16593] [SERVER] Incorrect Documentation for config.chunks Created: 18/Jan/24  Updated: 29/Jan/24  Resolved: 26/Jan/24

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 6.0.0, 7.1.0, 7.2.0, 7.3.0, Server_Docs_[20240129]

Type: Task Priority: Major - P3
Reporter: Erling Austvoll Assignee: Jason Price
Resolution: Done Votes: 0
Labels: bug, quick-win
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

URL(s): https://www.mongodb.com/docs/manual/reference/config-database/
Participants:
Days since reply: 1 week, 5 days ago
Story Points: 2

 Description   

Our documentation for the config.chunks collection (https://www.mongodb.com/docs/v6.0/reference/config-database/#mongodb-data-config.chunks) is incorrect. The _id field no longer contains the database namespace.

Finding all chunks in a collection requires first finding the collection UUID in the config.collections collection, then using this to query on the uuid field in the config.chunks collection.

The documentation should be updated to reflect the current collection document format.



 Comments   
Comment by Jason Price [ 26/Jan/24 ]

Backported back to 6.0 per JIRA.

Comment by Jason Price [ 22/Jan/24 ]

https://github.com/10gen/docs-mongodb-internal/pull/5904

Comment by Erling Austvoll [ 22/Jan/24 ]

Hi jason.price@mongodb.com,

The current format of the config.chunks collection is as follows:

Enterprise [direct: mongos] test> db.getSiblingDB("config").chunks.findOne()
{
  _id: ObjectId('65a954c0de11596e08e7c1dc'),
  uuid: UUID('a4479215-a38d-478f-a82b-e5e95d455e55'),
  min: { a: MinKey() },
  max: { a: Long('-4611686018427387902') },
  shard: 'shard01',
  lastmod: Timestamp({ t: 1, i: 0 }),
  history: [
    {
      validAfter: Timestamp({ t: 1705596095, i: 14 }),
      shard: 'shard01'
    }
  ]
}

Comment by Alison Huh [ 18/Jan/24 ]

Thanks for flagging erling.austvoll@mongodb.com. We expect to complete this work soon.

Generated at Thu Feb 08 08:15:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.