[SERVER-5957] replica set primaries should log they are assuming PRIMARY in their oplog Created: 29/May/12  Updated: 13/Aug/15  Resolved: 12/Aug/15

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

Type: Improvement Priority: Minor - P4
Reporter: Dwight Merriman Assignee: Matt Dannenberg
Resolution: Duplicate Votes: 0
Labels: elections
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-18584 A primary should write 'n' op when el... Closed
Related
related to SERVER-13502 Log replica set configuration on changes Closed
Participants:

 Description   

to help with diagnostics
we already have a 'no-op' code for the oplog so it's easy

caveat edge case: imagine failing over, no writes happen, then failing back. if we do this, we would log a rollback, without actually writing any rollback file.



 Comments   
Comment by Matt Dannenberg [ 12/Aug/15 ]

Fixed under SERVER-18584.

Comment by Githook User [ 19/Nov/14 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: Revert "SERVER-5957: record oplog msg when primary"

This reverts commit 2e2091d502d959f52640de209470ecd3180d7269 because it
causes deadlock.
Branch: master
https://github.com/mongodb/mongo/commit/fe6cc50395b76494cae644c98cbc9ec265cf78b1

Comment by Githook User [ 19/Nov/14 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-5957: record oplog msg when primary
Branch: master
https://github.com/mongodb/mongo/commit/2e2091d502d959f52640de209470ecd3180d7269

Comment by Scott Hernandez (Inactive) [ 13/Nov/14 ]

Reverted because of write in the executor callback; will refactor so we can't block the executor on a database lock.

Comment by Githook User [ 13/Nov/14 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: Revert "SERVER-5957: record oplog msg when primary"

This reverts commit 44461e50ac7124b76564a400948ed7b9173504b4.
Branch: master
https://github.com/mongodb/mongo/commit/f49039888f598207b315592da43a266fbf9f179d

Comment by Githook User [ 13/Nov/14 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-5957: record oplog msg when primary
Branch: master
https://github.com/mongodb/mongo/commit/44461e50ac7124b76564a400948ed7b9173504b4

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