[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: 03/Jul/20 Updated: 29/Oct/23 Resolved: 23/Jul/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 4.7.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Linda Qin | Assignee: | Janna Golden |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | sharding-wfbf-day | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Sprint: | Sharding 2020-07-27 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
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.
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. |
| Comments |
| Comment by Janna Golden [ 23/Jul/20 ] | ||||||||||||||||||||
|
The "server" and "shard" fields currently refer to which node is "making the change". In the case of split and merge, it is actually the config server since the config server changes the metadata and writes to the changelog collection. In case any downstream users might rely on this meaning, I've added a new field to the "details" field of changelog entries for split and merge called "owningShard" rather than change what "server" and "shard" represent here. An entry for a commit operation will now look something like:
| ||||||||||||||||||||
| Comment by Githook User [ 23/Jul/20 ] | ||||||||||||||||||||
|
Author: {'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}Message: |