[SERVER-38696] Add additional metrics and logging on stepdown Created: 18/Dec/18  Updated: 29/Oct/23  Resolved: 14/Feb/19

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

Type: New Feature Priority: Major - P3
Reporter: Gregory McKeon (Inactive) Assignee: Suganthi Mani
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-38511 Implement new stepdown sequence, gate... Closed
Documented
is documented by DOCS-12483 Docs for SERVER-38696: Add additional... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2019-01-28, Repl 2019-02-11, Repl 2019-02-25
Participants:

 Description   

Add the following metrics to server status:

  • repl.stepDown.userWriteOperationsKilled: Write operations killed by stepdown.
  • repl.stepDown.userReadOperationsRunning: Read operations left running at stepdown
  • repl.network.secondaryLegacyUnacknowledgedWrites: Write operations to a secondary which resulted in a disconnection due to being an unacknowledged write (legacy ops)
  • repl.network.secondaryUnacknowledgedWrites: Write operations to a secondary which resulted in a disconnection due to being an unacknowledged write

Add the following logging:

  • At stepdown log the number of operations killed and preserved.
  • Log when an unacknowledged write results in a disconnection.


 Comments   
Comment by Githook User [ 14/Feb/19 ]

Author:

{'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com', 'username': 'smani87'}

Message: SERVER-38696 Add additional metrics and logging for new step down sequence.
Branch: master
https://github.com/mongodb/mongo/commit/1249ab16eee475858417e5821e61fcebff1598f8

Comment by Geert Bosch [ 14/Feb/19 ]

suganthi.mani This broke dynamic library builds. Please be sure to include all required builder in your patch builds.

Comment by Githook User [ 14/Feb/19 ]

Author:

{'name': 'Geert Bosch', 'email': 'geert@mongodb.com', 'username': 'GeertBosch'}

Message: Revert "SERVER-38696 Add additional metrics and logging for new step down sequence."

This reverts commit 6089c4c1d8f166b6b61cec980672779b7cedc303.
Branch: master
https://github.com/mongodb/mongo/commit/27d6644dffd80f139b90a8e89f1b21d8830ec35a

Comment by Githook User [ 14/Feb/19 ]

Author:

{'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com', 'username': 'smani87'}

Message: SERVER-38696 Add additional metrics and logging for new step down sequence.
Branch: master
https://github.com/mongodb/mongo/commit/6089c4c1d8f166b6b61cec980672779b7cedc303

Generated at Thu Feb 08 04:49:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.