[SERVER-15427] Add command to manage the slave map Created: 26/Sep/14  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Backlog - Replication Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-15425 Make new replication code resilient t... Closed
is related to SERVER-15443 Provide mechanism for inspecting the ... Closed
is related to SERVER-15444 Clean op old entries in the slave tra... Closed
is related to SERVER-6934 Make getLastError return servers that... Closed
Assigned Teams:
Replication
Participants:

 Description   

For diagnostic purposes it would be good to be able to get access to the slave map, and/or clear it. It might also be useful to manually add/update it.

I'm thinking something like:

db.adminCommand({replSetSlaveMap:1}) // dumps
{ rid:   { _id:x, host:.., optime:OpTime}, 
  rid2: { _id:x, host:.., optime:OpTime}}
db.adminCommand({replSetSlaveMap:1, reset:true}) // clears/resets
db.adminCommand({replSetSlaveMap:1, update:{rid:OpTime}}) // updates  ember


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