[SERVER-12119] Add new command to allow applications to append notes to the oplog. Created: 16/Dec/13  Updated: 18/Oct/17  Resolved: 07/Jan/14

Status: Closed
Project: Core Server
Component/s: Replication, Security
Affects Version/s: 2.5.4
Fix Version/s: 2.5.5

Type: Improvement Priority: Major - P3
Reporter: Andy Schwerin Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: brs
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-28559 appendOplogNote command needs to ensu... Closed
is related to DOCS-5439 [Server] Document appendOplogNote Closed
is related to SERVER-18489 Ban users from directly writing to op... Backlog
Participants:

 Description   

Some cluster operations applications, such as backup or monitoring services, may wish to add note entries to the replication oplog. These entries would have no affect on the operation of a replica set, but could be used by such applications to learn about the relative progress of nodes applying an oplog.

This can be accomplished today by directly appending "n"-type entries to the oplog, but there is no way to create a privilege for only appending "n"-type entries to the oplog. As a result, services cannot be given the least privilege needed to just leave notes in the oplog.

The proposal is to introduce a new command and corresponding action type, appendOplogNote. The target of the action would be the cluster resource, and the target of the command would be the "admin" database. The command would take one argument, the "data" field, which would be stored in the "o" field of an n-type oplog entry.

This privilege would be given to the backup@admin role.

NOTE: The command should write to the appropriate oplog, depending on if the node is a replica set member (local.oplog.rs), a master/slave replication node (local.oplog.$main) or a config server (local.oplog.$main).



 Comments   
Comment by Githook User [ 07/Jan/14 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: SERVER-12119 Add new command to allow applications to append notes to the oplog
Branch: master
https://github.com/mongodb/mongo/commit/fb925afd65723878fa2911f513f275eada1c8337

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