@@ -1134,6 +1134,110 @@ Output Fields
1134
1134
1135
1135
.. versionadded:: 5.0
1136
1136
1137
+ .. data:: currentOp.approxDocumentsToCopy
1138
+
1139
+ The approximate number of documents to be copied from the donor
1140
+ shards to the recipient shards during the resharding operation. This
1141
+ number is an estimate that is set at the beginning of the resharding
1142
+ operation and does not change after it has been set. The number is
1143
+ set to 0 when a new resharding operation starts. It is
1144
+ possible for ``$currentOp.documentsCopied`` and
1145
+ ``$currentOp.bytesCopied`` to end up exceeding
1146
+ ``$currentOp.approxDocumentsToCopy`` and
1147
+ ``$currentOp.approxBytesToCopy``, respectively, if
1148
+ the post-resharding data distribution is not perfectly uniform.
1149
+
1150
+ Only present on a recipient shard when a resharding operation is
1151
+ taking place.
1152
+
1153
+ .. versionadded:: 5.0
1154
+
1155
+ .. data:: currentOp.documentsCopied
1156
+
1157
+ The number of documents copied form donor shards to recipient shards
1158
+ during the resharding operation. The number is set to 0 when a new
1159
+ resharding operation starts.
1160
+
1161
+ Only present on a recipient shard when a resharding operation is
1162
+ taking place.
1163
+
1164
+ .. versionadded:: 5.0
1165
+
1166
+ .. data:: currentOp.approxBytesToCopy
1167
+
1168
+ The approximate number of bytes to be copied from the donor shards to
1169
+ the recipient shards during the resharding operation. This number is
1170
+ an estimate that is set at the beginning of the resharding operation
1171
+ and does not change after it has been set. The number is set to 0
1172
+ when a new resharding operation starts. It is possible for
1173
+ ``$currentOp.documentsCopied`` and ``$currentOp.bytesCopied`` to end
1174
+ up exceeding ``$currentOp.approxDocumentsToCopy`` and
1175
+ ``$currentOp.approxBytesToCopy``, respectively, if the
1176
+ post-resharding data distribution is not perfectly uniform.
1177
+
1178
+ Only present on a recipient shard when a resharding operation is
1179
+ taking place.
1180
+
1181
+ .. versionadded:: 5.0
1182
+
1183
+ .. data:: currentOp.bytesCopied
1184
+
1185
+ The number of bytes copied from donor shards to recipient shards
1186
+ during the resharding operation. The number is set to 0 when a new
1187
+ resharding operation starts.
1188
+
1189
+ Only present on a recipient shard when a resharding operation is
1190
+ taking place.
1191
+
1192
+ .. versionadded:: 5.0
1193
+
1194
+ .. data:: currentOp.totalCopyTimeElapsed
1195
+
1196
+ The total elapsed time, in seconds, for ongoing data copy tasks from
1197
+ donor shards to recipient shards for the current resharding
1198
+ operation. The time is set to 0 when a new resharding operation
1199
+ starts.
1200
+
1201
+ Only present on a recipient shard when a resharding operation is
1202
+ taking place.
1203
+
1204
+ .. versionadded:: 5.0
1205
+
1206
+ .. data:: currentOp.oplogEntriesFetched
1207
+
1208
+ The number of entries fetched from the :term:`oplog` for the current
1209
+ resharding operation. The number is set to 0 when a new resharding
1210
+ operation starts.
1211
+
1212
+ Only present on a recipient shard when a resharding operation is
1213
+ taking place.
1214
+
1215
+ .. versionadded:: 5.0
1216
+
1217
+ .. data:: currentOp.oplogEntriesApplied
1218
+
1219
+ The number of entries applied to the :term:`oplog` for the current
1220
+ resharding operation. The number is set to 0 when a new resharding
1221
+ operation starts.
1222
+
1223
+ Only present on a recipient shard when a resharding operation is
1224
+ taking place.
1225
+
1226
+ .. versionadded:: 5.0
1227
+
1228
+ .. data:: currentOp.totalApplyTimeElapsed
1229
+
1230
+ The total elapsed time, in seconds, for the apply step of the
1231
+ current resharding operation. In the apply step, recipient shards
1232
+ apply :term:`oplog` entries to modify their data based on new
1233
+ incoming writes from donor shards. The time is set to 0 when a new
1234
+ resharding operation starts.
1235
+
1236
+ Only present on a recipient shard when a resharding operation is
1237
+ taking place.
1238
+
1239
+ .. versionadded:: 5.0
1240
+
1137
1241
.. data:: currentOp.countWritesDuringCriticalSection
1138
1242
1139
1243
The number of writes perfomed in the critical section for the current
@@ -1207,6 +1311,59 @@ Output Fields
1207
1311
1208
1312
.. versionadded:: 5.0
1209
1313
1314
+ .. data:: currentOp.recipientState
1315
+
1316
+ The current state of a recipient shard for a resharding operation.
1317
+ The state is set to ``unused`` when a new resharding operation
1318
+ starts.
1319
+
1320
+ Only present on a donor shard when a resharding operation is taking
1321
+ place.
1322
+
1323
+ .. list-table::
1324
+ :widths: 20 80
1325
+ :header-rows: 1
1326
+
1327
+ * - State
1328
+ - Description
1329
+
1330
+ * - ``unused``
1331
+ - The resharding operation is about to start.
1332
+
1333
+ * - ``awaiting-fetch-timestamp``
1334
+ - The recipient shard is waiting for the donor shards to be
1335
+ prepared to donate their data.
1336
+
1337
+ * - ``creating-collection``
1338
+ - The recipient shard is creating the new sharded collection.
1339
+
1340
+ * - ``cloning``
1341
+ - The recipient shard is receiving data from the donor shards.
1342
+
1343
+ * - ``applying``
1344
+ - The recipient shard is applying :term:`oplog` entries to
1345
+ modify its copy of the data based on the new incoming writes
1346
+ from donor shards. The recipient shard data is not yet
1347
+ consistent with the donor shard data.
1348
+
1349
+ * - ``steady-state``
1350
+ - The recipient shard data is consistent with the donor shard
1351
+ data.
1352
+
1353
+ * - ``strict-consistency``
1354
+ - The recipient shard has all data changes.
1355
+
1356
+ * - ``renaming``
1357
+ - The recipient shard renames the new sharded collection.
1358
+
1359
+ * - ``done``
1360
+ - The resharding operation is complete.
1361
+
1362
+ * - ``error``
1363
+ - An error occurred during the resharding operation.
1364
+
1365
+ .. versionadded:: 5.0
1366
+
1210
1367
.. data:: currentOp.coordinatorState
1211
1368
1212
1369
The state of the resharding coordinator for the current resharding
@@ -1306,4 +1463,4 @@ Output Fields
1306
1463
* - ``canceled``
1307
1464
- The resharding operation was canceled.
1308
1465
1309
- .. versionadded:: 5.0
1466
+ .. versionadded:: 5.0
0 commit comments