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)

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Fully Compatible
    • Sharding 2020-07-27
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Janna Golden
            Reporter:
            Linda Qin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: