@@ -3253,42 +3253,41 @@ shardingStatistics
3253
3253
3254
3254
* - 0
3255
3255
- ``unused``
3256
- - Shard is not a donor in the current resharding operation.
3256
+ - The shard is not a donor in the current resharding operation.
3257
3257
3258
3258
* - 1
3259
3259
- ``preparing-to-donate``
3260
- - Donor shard preparing to donate data to recipient shard.
3260
+ - The donor shard is preparing to donate data to the recipient
3261
+ shards.
3261
3262
3262
3263
* - 2
3263
3264
- ``donating-initial-data``
3264
- - Donor shard donating data to recipient shard .
3265
+ - The donor shard is donating data to the recipient shards .
3265
3266
3266
3267
* - 3
3267
3268
- ``donating-oplog-entries``
3268
- - Donor shard donating :term:`oplog` entries to recipient shard.
3269
+ - The donor shard is donating :term:`oplog` entries to the
3270
+ recipient shards.
3269
3271
3270
3272
* - 4
3271
- - ``preparing-to-mirror ``
3272
- - Donor shard preventing new incoming write operations to the
3273
- collection being resharded.
3273
+ - ``preparing-to-block-writes ``
3274
+ - The donor shard is about to prevent new incoming write
3275
+ operations to the collection that is being resharded.
3274
3276
3275
3277
* - 5
3276
- - ``mirroring``
3277
- - Donor shard preventing new incoming write operations, and
3278
- donor shard has notified all recipient shards that new
3279
- incoming writes are prevented.
3278
+ - ``error``
3279
+ - An error occurred during the resharding operation.
3280
3280
3281
3281
* - 6
3282
- - ``dropping``
3283
- - Donor shard dropping old sharded collection.
3282
+ - ``blocking-writes``
3283
+ - The donor shard is preventing new incoming write operations
3284
+ and the donor shard has notified all recipient shards that new
3285
+ incoming writes are prevented.
3284
3286
3285
3287
* - 7
3286
3288
- ``done``
3287
- - Resharding operation is complete.
3288
-
3289
- * - 8
3290
- - ``error``
3291
- - Error occurred during resharding operation.
3289
+ - The donor shard has dropped the old sharded collection and the
3290
+ resharding operation is complete.
3292
3291
3293
3292
*Only present when run on a shard or config server. Returns 0 on a
3294
3293
config server.*
@@ -3313,42 +3312,37 @@ shardingStatistics
3313
3312
- Shard is not a recipient in the current resharding operation.
3314
3313
3315
3314
* - 1
3316
- - ``creating-collection``
3317
- - Recipient shard creating new sharded collection.
3315
+ - ``awaiting-fetch-timestamp``
3316
+ - The recipient shard is waiting for the donor shards to be
3317
+ prepared to donate their data
3318
3318
3319
3319
* - 2
3320
- - ``cloning ``
3321
- - Recipient shard receiving data from donor shards .
3320
+ - ``creating-collection ``
3321
+ - The recipient shard is creating the new sharded collection .
3322
3322
3323
3323
* - 3
3324
- - ``applying``
3325
- - Recipient shard modifying its copy of the data based on the
3326
- new incoming writes from donor shards. Recipient shards
3327
- apply changes from :term:`oplog` entries generated by
3328
- donor shards. Recipient shard data is not yet consistent with
3329
- donor shard data, but will be when the steady state is
3330
- reached.
3324
+ - ``cloning``
3325
+ - The recipient shard is receiving data from the donor shards.
3331
3326
3332
3327
* - 4
3333
- - ``steady-state``
3334
- - Steady state is reached. Recipient shard data is consistent
3335
- with donor shard data.
3328
+ - ``applying``
3329
+ - The recipient shard is applying :term:`oplog` entries to
3330
+ modify its copy of the data based on the new incoming writes
3331
+ from donor shards.
3336
3332
3337
3333
* - 5
3338
- - ``strict-consistency ``
3339
- - Recipient shard has all data changes .
3334
+ - ``error ``
3335
+ - An error occurred during the resharding operation .
3340
3336
3341
3337
* - 6
3342
- - ``renaming``
3343
- - Recipient shard renaming new sharded collection.
3338
+ - ``strict-consistency``
3339
+ - The recipient shard has all data changes stored in a temporary
3340
+ collection.
3344
3341
3345
3342
* - 7
3346
3343
- ``done``
3347
- - Resharding operation is complete.
3344
+ - The resharding operation is complete.
3348
3345
3349
- * - 8
3350
- - ``error``
3351
- - Error occurred during resharding operation.
3352
3346
3353
3347
*Only present when run on a shard or config server. Returns 0 on a
3354
3348
config server.*
@@ -3372,55 +3366,64 @@ shardingStatistics
3372
3366
3373
3367
* - 0
3374
3368
- ``unused``
3375
- - Shard is not the coordinator in the current resharding
3369
+ - The shard is not the coordinator in the current resharding
3376
3370
operation.
3377
3371
3378
3372
* - 1
3379
3373
- ``initializing``
3380
- - Resharding coordinator informs shards to begin resharding
3381
- operation.
3374
+ - The resharding coordinator has inserted the coordinator
3375
+ document into ``config.reshardingOperations`` and has added
3376
+ the ``reshardingFields`` to the ``config.collections`` entry
3377
+ for the original collection.
3382
3378
3383
3379
* - 2
3384
3380
- ``preparing-to-donate``
3385
- - Resharding coordinator informs donor shards to prepare to
3386
- donate data to recipient shards.
3381
+ - The resharding coordinator
3382
+
3383
+ - has created a ``config.collections`` entry for the temporary
3384
+ resharding collection.
3385
+ - has inserted entries into ``config.chunks`` for ranges based
3386
+ on the new shard key.
3387
+ - has inserted entries into ``config.tags`` for any zones
3388
+ associated with the new shard key.
3389
+
3390
+ The coordinator informs participant shards to begin the
3391
+ resharding operation. The coordinator then waits until all
3392
+ donor shards have picked a ``minFetchTimestamp`` and are ready
3393
+ to donate.
3387
3394
3388
3395
* - 3
3389
3396
- ``cloning``
3390
- - Resharding coordinator informs donor shards to donate data to
3391
- recipient shards.
3397
+ - The resharding coordinator informs donor shards to donate data
3398
+ to recipient shards. The coordinator waits for all recipients
3399
+ to finish cloning the data from the donor.
3392
3400
3393
3401
* - 4
3394
3402
- ``applying``
3395
- - Resharding coordinator informs recipient shards to modify the
3396
- copy of data based on new incoming writes from donor shards.
3403
+ - The resharding coordinator informs recipient shards to modify
3404
+ their copies of data based on new incoming writes from donor
3405
+ shards. The coordinator waits for all recipients to finish
3406
+ applying :term:`oplog` entries.
3397
3407
3398
3408
* - 5
3399
- - ``mirroring ``
3400
- - Resharding coordinator informs donor shards to prevent new
3409
+ - ``blocking-writes ``
3410
+ - The resharding coordinator informs donor shards to prevent new
3401
3411
incoming write operations to the collection being resharded.
3412
+ The coordinator then waits for all recipients to have all data
3413
+ changes.
3402
3414
3403
3415
* - 6
3404
- - ``committed``
3405
- - Resharding coordinator has updated the metadata
3406
- for the collection being resharded, but the resharding
3407
- coordinator has not yet informed the donor or recipient shards
3408
- of the update. The metadata is stored in the
3409
- :data:`~config.collections`, :data:`~config.chunks`, and
3410
- :data:`~config.tags` collections.
3416
+ - ``aborting``
3417
+ - An unrecoverable error occurred during the resharding
3418
+ operation or the :dbcommand:`abortReshardCollection` command
3419
+ (or the :method:`sh.abortReshardCollection()` method) was run.
3411
3420
3412
- * - 7
3413
- - ``renaming``
3414
- - Resharding coordinator informs recipient shards to rename new
3415
- sharded collection.
3416
-
3417
- * - 8
3418
- - ``done``
3419
- - Resharding operation is complete.
3420
-
3421
- * - 9
3422
- - ``error``
3423
- - Error occurred during resharding operation.
3421
+ * - 6
3422
+ - ``committing``
3423
+ - The resharding coordinator removes the ``config.collections``
3424
+ entry for the temporary resharding collection. The coordinator
3425
+ then adds the ``recipientFields`` to the source collection's
3426
+ entry.
3424
3427
3425
3428
*Only present when run on a shard or config server.*
3426
3429
0 commit comments