Skip to content

Commit 917e2f5

Browse files
npentreljeff-allen-mongo
authored andcommitted
DOCS-14193 currentop for ReshardingDonorService
1 parent 29e33d3 commit 917e2f5

File tree

3 files changed

+149
-3
lines changed

3 files changed

+149
-3
lines changed

source/reference/command/currentOp.txt

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,79 @@ Output Fields
11341134

11351135
.. versionadded:: 5.0
11361136

1137+
.. data:: currentOp.countWritesDuringCriticalSection
1138+
1139+
The number of writes perfomed in the critical section for the current
1140+
resharding operation. The critical section prevents new incoming
1141+
writes to the collection currently being resharded. The number is set
1142+
to 0 when a new resharding operation starts.
1143+
1144+
Only present on a donor shard when a resharding operation is taking
1145+
place.
1146+
1147+
.. versionadded:: 5.0
1148+
1149+
.. data:: currentOp.totalCriticalSectionTimeElapsed
1150+
1151+
The total elapsed time, in seconds, for the critical section of the
1152+
current resharding operation. The critical section prevents new
1153+
incoming writes to the collection currently being resharded. The time
1154+
is set to 0 when a new resharding operation starts.
1155+
1156+
Only present on a donor shard when a resharding operation is taking
1157+
place.
1158+
1159+
.. versionadded:: 5.0
1160+
1161+
.. data:: currentOp.donorState
1162+
1163+
The current state of a donor shard for the resharding operation. The
1164+
state is set to ``unused`` when a new resharding operation starts.
1165+
1166+
Only present on a donor shard when a resharding operation is taking
1167+
place.
1168+
1169+
.. list-table::
1170+
:widths: 20 80
1171+
:header-rows: 1
1172+
1173+
* - State
1174+
- Description
1175+
1176+
* - ``unused``
1177+
- The resharding operation is about to start.
1178+
1179+
* - ``preparing-to-donate``
1180+
- The donor shard is preparing to donate data to the recipient
1181+
shards.
1182+
1183+
* - ``donating-initial-data``
1184+
- The donor shard is donating data to the recipient shards.
1185+
1186+
* - ``donating-oplog-entries``
1187+
- The donor shard is donating :term:`oplog` entries to the
1188+
recipient shards.
1189+
1190+
* - ``preparing-to-mirror``
1191+
- The donor shard is preventing new incoming write operations to
1192+
the collection that is being resharded.
1193+
1194+
* - ``mirroring``
1195+
- The donor shard is preventing new incoming write operations
1196+
and the donor shard has notified all recipient shards that new
1197+
incoming writes are prevented.
1198+
1199+
* - ``dropping``
1200+
- The donor shard is dropping the old sharded collection.
1201+
1202+
* - ``done``
1203+
- The resharding operation is complete.
1204+
1205+
* - ``error``
1206+
- An error occurred during the resharding operation.
1207+
1208+
.. versionadded:: 5.0
1209+
11371210
.. data:: currentOp.coordinatorState
11381211

11391212
The state of the resharding coordinator for the current resharding
@@ -1233,4 +1306,4 @@ Output Fields
12331306
* - ``canceled``
12341307
- The resharding operation was canceled.
12351308

1236-
.. versionadded:: 5.0
1309+
.. versionadded:: 5.0

source/reference/command/serverStatus.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3117,8 +3117,8 @@ shardingStatistics
31173117

31183118
.. serverstatus:: shardingStatistics.resharding.totalCriticalSectionTimeElapsedMillis
31193119

3120-
Total elapsed time, in milliseconds, for the critical section part of
3121-
the current resharding operation. The critical section prevents new
3120+
Total elapsed time, in milliseconds, for the critical section of the
3121+
current resharding operation. The critical section prevents new
31223122
incoming writes to the collection currently being resharded. Time is
31233123
set to 0 when a new resharding operation starts.
31243124

source/reference/operator/aggregation/currentOp.txt

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,79 @@ relevant for the operation:
15911591

15921592
.. versionadded:: 5.0
15931593

1594+
.. data:: $currentOp.countWritesDuringCriticalSection
1595+
1596+
The number of writes perfomed in the critical section for the current
1597+
resharding operation. The critical section prevents new incoming
1598+
writes to the collection currently being resharded. The number is set
1599+
to 0 when a new resharding operation starts.
1600+
1601+
Only present on a donor shard when a resharding operation is taking
1602+
place.
1603+
1604+
.. versionadded:: 5.0
1605+
1606+
.. data:: $currentOp.totalCriticalSectionTimeElapsed
1607+
1608+
The total elapsed time, in seconds, for the critical section of the
1609+
current resharding operation. The critical section prevents new
1610+
incoming writes to the collection currently being resharded. The time
1611+
is set to 0 when a new resharding operation starts.
1612+
1613+
Only present on a donor shard when a resharding operation is taking
1614+
place.
1615+
1616+
.. versionadded:: 5.0
1617+
1618+
.. data:: $currentOp.donorState
1619+
1620+
The current state of a donor shard for the resharding operation. The
1621+
state is set to ``unused`` when a new resharding operation starts.
1622+
1623+
Only present on a donor shard when a resharding operation is taking
1624+
place.
1625+
1626+
.. list-table::
1627+
:widths: 20 80
1628+
:header-rows: 1
1629+
1630+
* - State
1631+
- Description
1632+
1633+
* - ``unused``
1634+
- The resharding operation is about to start.
1635+
1636+
* - ``preparing-to-donate``
1637+
- The donor shard is preparing to donate data to the recipient
1638+
shards.
1639+
1640+
* - ``donating-initial-data``
1641+
- The donor shard is donating data to the recipient shards.
1642+
1643+
* - ``donating-oplog-entries``
1644+
- The donor shard is donating :term:`oplog` entries to the
1645+
recipient shards.
1646+
1647+
* - ``preparing-to-mirror``
1648+
- The donor shard is preventing new incoming write operations to
1649+
the collection that is being resharded.
1650+
1651+
* - ``mirroring``
1652+
- The donor shard is preventing new incoming write operations
1653+
and the donor shard has notified all recipient shards that new
1654+
incoming writes are prevented.
1655+
1656+
* - ``dropping``
1657+
- The donor shard is dropping the old sharded collection.
1658+
1659+
* - ``done``
1660+
- The resharding operation is complete.
1661+
1662+
* - ``error``
1663+
- An error occurred during the resharding operation.
1664+
1665+
.. versionadded:: 5.0
1666+
15941667
.. data:: $currentOp.coordinatorState
15951668

15961669
The state of the resharding coordinator for the current resharding

0 commit comments

Comments
 (0)