@@ -206,13 +206,20 @@ The following example returns information on index creation operations:
206
206
}
207
207
)
208
208
209
-
210
-
211
209
Output Example
212
210
--------------
213
211
214
212
.. include:: /includes/currentOp-output-example.rst
215
213
214
+ .. _currentOp-specific-output-examples:
215
+
216
+ Specific Output Examples
217
+ ------------------------
218
+
219
+ .. include:: /includes/metrics/txt-section-intro.rst
220
+ .. include:: /includes/metrics/ex-resharding.rst
221
+ .. include:: /includes/metrics/ex-global-index.rst
222
+
216
223
.. _currentOp-output-fields:
217
224
218
225
Output Fields
@@ -1106,7 +1113,7 @@ Output Fields
1106
1113
1107
1114
.. versionadded:: 4.2
1108
1115
1109
- .. data:: currentOp.totalOperationTimeElapsed
1116
+ .. data:: currentOp.totalOperationTimeElapsedSecs
1110
1117
1111
1118
The total time elapsed, in seconds, for the current :ref:`resharding
1112
1119
operation <sharding-resharding>`. The time is set to 0 when a new
@@ -1116,7 +1123,19 @@ Output Fields
1116
1123
1117
1124
.. versionadded:: 5.0
1118
1125
1119
- .. data:: currentOp.remainingOperationTimeEstimated
1126
+ Starting in MongoDB 6.1, this metric is also available on the
1127
+ coordinator during resharding.
1128
+
1129
+ .. data:: currentOp.updatesApplied
1130
+
1131
+ The number of updates applied.
1132
+
1133
+ Only present on a recipient shard when a resharding operation is
1134
+ taking place.
1135
+
1136
+ .. versionadded:: 6.1
1137
+
1138
+ .. data:: currentOp.remainingOperationTimeEstimatedSecs
1120
1139
1121
1140
The estimated time remaining in seconds for the current
1122
1141
:ref:`resharding operation <sharding-resharding>`. The time is set to
@@ -1127,6 +1146,29 @@ Output Fields
1127
1146
1128
1147
.. versionadded:: 5.0
1129
1148
1149
+ Starting in MongoDB 6.1, this metric is also available on the
1150
+ coordinator during resharding.
1151
+
1152
+ .. data:: currentOp.allShardsLowestRemainingOperationTimeEstimatedSecs
1153
+
1154
+ Calculated across all shards, the lowest estimate of the number of
1155
+ seconds remaining.
1156
+
1157
+ Only present on a coordinator when a resharding operation is
1158
+ taking place.
1159
+
1160
+ .. versionadded:: 6.1
1161
+
1162
+ .. data:: currentOp.allShardsHighestRemainingOperationTimeEstimatedSecs
1163
+
1164
+ Calculated across all shards, the highest estimate of the number of
1165
+ seconds remaining.
1166
+
1167
+ Only present on a coordinator when a resharding operation is
1168
+ taking place.
1169
+
1170
+ .. versionadded:: 6.1
1171
+
1130
1172
.. data:: currentOp.approxDocumentsToCopy
1131
1173
1132
1174
The approximate number of documents to be copied from the donor
@@ -1185,7 +1227,57 @@ Output Fields
1185
1227
1186
1228
.. versionadded:: 5.0
1187
1229
1188
- .. data:: currentOp.totalCopyTimeElapsed
1230
+ .. data:: currentOp.countWritesToStashCollections
1231
+
1232
+ The number of writes to the recipient :term:`stash collections
1233
+ <stash collection>`.
1234
+
1235
+ Only present on a recipient shard when a resharding operation is
1236
+ taking place.
1237
+
1238
+ .. versionadded:: 6.1
1239
+
1240
+ .. data:: currentOp.countWritesDuringCriticalSection
1241
+
1242
+ The number of writes attempted during the donor's critical
1243
+ section.
1244
+
1245
+ Only present on a donor shard when a resharding operation is
1246
+ taking place.
1247
+
1248
+ .. versionadded:: 6.1
1249
+
1250
+ .. data:: currentOp.countReadsDuringCriticalSection
1251
+
1252
+ The number of reads attempted during the donor's critical
1253
+ section.
1254
+
1255
+ Only present on a donor shard when a resharding operation is
1256
+ taking place.
1257
+
1258
+ .. versionadded:: 6.1
1259
+
1260
+ .. data:: currentOp.deletesApplied
1261
+
1262
+ The number of deletes applied to the temporary resharding collection.
1263
+ Each oplog entry that involves a delete increments the counter by 1.
1264
+
1265
+ Only present on a recipient shard when a resharding operation is
1266
+ taking place.
1267
+
1268
+ .. versionadded:: 6.1
1269
+
1270
+ .. data:: currentOp.insertsApplied
1271
+
1272
+ The number of inserts applied to the temporary resharding collection.
1273
+ Each oplog entry that involves an insert increments the counter by 1.
1274
+
1275
+ Only present on a recipient shard when a resharding operation is
1276
+ taking place.
1277
+
1278
+ .. versionadded:: 6.1
1279
+
1280
+ .. data:: currentOp.totalCopyTimeElapsedSecs
1189
1281
1190
1282
The total elapsed time, in seconds, for ongoing data copy tasks from
1191
1283
donor shards to recipient shards for the current :ref:`resharding
@@ -1197,6 +1289,9 @@ Output Fields
1197
1289
1198
1290
.. versionadded:: 5.0
1199
1291
1292
+ Starting in MongoDB 6.1, this metric is also available on the
1293
+ coordinator during resharding.
1294
+
1200
1295
.. data:: currentOp.oplogEntriesFetched
1201
1296
1202
1297
The number of entries fetched from the :term:`oplog` for the current
@@ -1219,7 +1314,7 @@ Output Fields
1219
1314
1220
1315
.. versionadded:: 5.0
1221
1316
1222
- .. data:: currentOp.totalApplyTimeElapsed
1317
+ .. data:: currentOp.totalApplyTimeElapsedSecs
1223
1318
1224
1319
The total elapsed time, in seconds, for the apply step of the
1225
1320
current :ref:`resharding operation <sharding-resharding>`. In the
@@ -1232,6 +1327,9 @@ Output Fields
1232
1327
1233
1328
.. versionadded:: 5.0
1234
1329
1330
+ Starting in MongoDB 6.1, this metric is also available on the
1331
+ coordinator during resharding.
1332
+
1235
1333
.. data:: currentOp.countWritesDuringCriticalSection
1236
1334
1237
1335
The number of writes perfomed in the critical section for the current
@@ -1245,7 +1343,7 @@ Output Fields
1245
1343
1246
1344
.. versionadded:: 5.0
1247
1345
1248
- .. data:: currentOp.totalCriticalSectionTimeElapsed
1346
+ .. data:: currentOp.totalCriticalSectionTimeElapsedSecs
1249
1347
1250
1348
The total elapsed time, in seconds, for the critical section of the
1251
1349
current :ref:`resharding operation <sharding-resharding>`. The
@@ -1258,6 +1356,9 @@ Output Fields
1258
1356
1259
1357
.. versionadded:: 5.0
1260
1358
1359
+ Starting in MongoDB 6.1, this metric is also available on the
1360
+ coordinator during resharding.
1361
+
1261
1362
.. data:: currentOp.donorState
1262
1363
1263
1364
The current state of a donor shard for the :ref:`resharding operation
@@ -1429,30 +1530,9 @@ Output Fields
1429
1530
1430
1531
.. data:: currentOp.opStatus
1431
1532
1432
- The current state of a :ref:`resharding operation
1433
- <sharding-resharding>`.
1434
-
1435
- Only present if a resharding operation is taking place. Once the
1436
- operation has completed, the operation is removed from ``currentOp``
1437
- output.
1438
-
1439
- .. list-table::
1440
- :widths: 20 80
1441
- :header-rows: 1
1442
-
1443
- * - State
1444
- - Description
1445
-
1446
- * - ``actively running``
1447
- - The resharding operation is actively running.
1448
-
1449
- * - ``success``
1450
- - The resharding operation has succeeded.
1533
+ This metric is removed in version 6.1. For a list of new metrics that
1534
+ replace and expand the reporting ``currentOp.opStatus`` provided,
1535
+ see the :ref:`release notes <6.1-rel-notes-currentOp>`.
1451
1536
1452
- * - ``failure``
1453
- - The resharding operation has failed.
1537
+ .. versionchanged:: 6.1
1454
1538
1455
- * - ``canceled``
1456
- - The resharding operation was canceled.
1457
-
1458
- .. versionadded:: 5.0
0 commit comments