@@ -1799,7 +1799,8 @@ metrics
17991799 reconfig : {
18001800 numAutoReconfigsForRemovalOfNewlyAddedFields : Long("<num>")
18011801 },
1802- stepDown : {
1802+ stateTransition : {
1803+ lastStateTransition : <string>,
18031804 userOperationsKilled : Long("<num>"),
18041805 userOperationsRunning : Long("<num>")
18051806 },
@@ -2572,26 +2573,52 @@ metrics
25722573
25732574 .. versionadded:: 5.0
25742575
2575- .. serverstatus:: metrics.repl.stepDown
2576+ .. serverstatus:: metrics.repl.stateTransition
25762577
2577- Information on user operations that were running when the
2578- :binary:`~bin.mongod` stepped down.
2578+ Information on user operations when the member undergoes one of the
2579+ following transitions that can stop user operations:
25792580
2580- .. versionadded:: 4.2
2581+ - The member steps up to become a primary.
25812582
2582- .. serverstatus:: metrics.repl.stepDown.userOperationsKilled
2583+ - The member steps down to become a secondary.
25832584
2584- The number of user operations killed when the :binary:`~bin.mongod`
2585- stepped down.
2585+ - The member is actively performing a rollback.
25862586
2587- .. versionadded :: 4.2
2587+ .. serverstatus :: metrics.repl.stateTransition.lastStateTransition
25882588
2589- .. serverstatus:: metrics.repl.stepDown.userOperationsRunning
2589+ The transition being reported:
25902590
2591- The number of user operations that remained running when the
2592- :binary:`~bin.mongod` stepped down.
2591+ .. list-table::
2592+ :widths: 20 80
2593+ :header-rows: 1
25932594
2594- .. versionadded:: 4.2
2595+ * - State Change
2596+ - Description
2597+
2598+ * - ``"stepUp"``
2599+
2600+ - The member steps up to become a primary.
2601+
2602+ * - ``"stepDown"``
2603+ - The member steps down to become a secondary.
2604+
2605+ * - ``"rollback"``
2606+
2607+ - The member is actively performing a rollback.
2608+
2609+ * - ``""``
2610+
2611+ - The member has not undergone any state changes.
2612+
2613+ .. serverstatus:: metrics.repl.stateTransition.userOperationsKilled
2614+
2615+ The number of user operations stopped during the
2616+ :binary:`~bin.mongod` instance's state change.
2617+
2618+ .. serverstatus:: metrics.repl.stateTransition.userOperationsRunning
2619+
2620+ The number of user operations that remained running during the
2621+ ``mongod`` instance's state change.
25952622
25962623.. serverstatus:: metrics.repl.syncSource
25972624
0 commit comments