[DOCS-13786] Investigate changes in SERVER-49307: In changelog, report the shard name (& server host:port) for the shard that owns the chunk, instead of CSRS replica set name (& CSRS primary host:port) Created: 23/Jul/20  Updated: 13/Nov/23  Resolved: 19/Aug/21

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

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Jeffrey Allen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-49307 In changelog, report the shard name (... Closed
Participants:
Days since reply: 2 years, 24 weeks, 6 days ago
Epic Link: DOCSP-15042
Story Points: 3

 Description   

Description

Downstream Change Summary

Changelog entries for split and merge now have a new field called "owningShard" under the "details" section of the entry. This refers to the shardId of the shard that owns the chunk(s) that were split or merged.

A changelog entry for a chunk split will now look something like:

{
  "_id" : "CSRS_primary_host:CSRS_primary_port-XXX-YYY",
  "server" : "CSRS_primary_host:CSRS_primary_port",
  "shard" : "config",
  "time" : ISODate("2020-23-07T00:00:00.00"),
  "what" : "split",
  "ns" : "db.collection",
  "details" : {
    "before" : {
       ...
    },
    "left" : {
       ...
    },
    "right" : {
       ...
    },
    "owningShard": shardId
 }
}

Description of Linked Ticket

After a chunk is split, a split event will be recorded in the config.changelog collection. Currently the shard name & server name recorded in this changelog is the replica set of CSRS and host:port of the CSRS primary.

	"_id" : "CSRS_primary_host:CSRS_primary_port-XXX-YYY",
	"server" : "CSRS_primary_host:CSRS_primary_port",
	"shard" : "config",

It would be nice if the shard name & server could be the shard that owns the chunk. This would help to check the split activities on the shards and might help to identify hot shards etc.

Scope of changes

Impact to Other Docs

MVP (Work and Date)

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



 Comments   
Comment by Githook User [ 19/Aug/21 ]

Author:

{'name': 'Jeff Allen', 'email': 'jeffrey.allen@10gen.com', 'username': 'jeff-allen-mongo'}

Message: (DOCS-13786): Report the shard name of owning shard for split and merge ops
Branch: master
https://github.com/mongodb/docs/commit/d288979cb042ef06656d31982c74b62544313aba

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