[DOCS-14450] Update config.[chunks|collections|databases] entry examples Created: 13/May/21  Updated: 13/Nov/23  Due: 23/Jul/21  Resolved: 23/Jul/21

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 5.0 Required, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Alison Huh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 2 years, 28 weeks, 5 days ago
Epic Link: DOCSP-9747
Story Points: 2

 Description   

Description

Starting from v5.0, the ns field of config.chunks is replaced by the uuid field, while the lastmodEpoch field has been thrown out. Hence, the current example should be updated.

Replace "ns" : "mydb.foo", with "uuid": "c025d039-e626-435e-b2d2-c1d436038041", and remove "lastmodEpoch" : ObjectId("5d8aa9fbe7a2f52c300e8e6f"), .

EDIT: also config databases and config.collections have changed, you may repurpose the existing entries with the fields present in the two following examples. They do not contain all optional fields, but that should be fine since customers should not touch internal collections.

Example of new config.collections entry:

{
        "_id" : "nameOfTheDatabase.nameOfTheCollection",
        "lastmodEpoch" : ObjectId("60f989a2430bfdd95d8cfa20"),
        "lastmod" : ISODate("2021-07-22T15:07:14.301Z"),
        "timestamp" : Timestamp(1626966434, 13),
        "uuid" : UUID("c88e9237-ae8b-452e-9d89-bcdcaaa763db"),
        "key" : {
                "num" : 1
        },
        "unique" : false,
        "noBalance" : false
}

Example of new config.databases entry:

{
  "_id" : "nameOfTheDatabase",
  "primary" : "shard3-rs1",
  "partitioned" : true,
  "version" : {
  "uuid" : UUID("b0f9c370-536b-4028-bf7e-2b5dad36395a"),
  "timestamp" : Timestamp(1626966433, 34),
  "lastMod" : 1
}

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 23/Jul/21 ]

Author:

{'name': 'alisonjhuh', 'email': 'alison.huh@mongodb.com'}

Message: DOCS-14450 update config.chunks code block to reflect changed/removed fields
Branch: master
https://github.com/mongodb/docs/commit/14ab98a5e322991647aa7561e0072d77f4f80d4f

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