[SERVER-49900] Update config.localReshardingOperations.recipient.progress_txn_cloner document following each batch of config.transactions cloner Created: 25/Jul/20  Updated: 29/Oct/23  Resolved: 19/Nov/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Jack Mulrow
Resolution: Fixed Votes: 0
Labels: PM-234-M3, PM-234-T-config-txn-clone
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-52922 Have config.transactions cloner for r... Closed
Problem/Incident
Related
related to SERVER-50964 Create temporary swappable promise co... Closed
is related to SERVER-49908 Update config.localReshardingOperatio... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-11-16, Sharding 2020-11-30
Participants:
Linked BF Score: 0

 Description   

Store the largest _id value from the donor shard's cursor response in the config.localReshardingOperations.recipient.progress_txn_cloner document as the <progress lsid> for that donor shard.

{
    _id: <donor's shard ID>,
    progress: <donor1's progress lsid>,
}

The largest _id value from the donor shard's cursor response should be used with {$match: {_id: {$gt: <progress lsid>}}} to resume. Properties to ensure are being tested:

  1. The config.transaction cloner for resharding must not trigger a duplicate key error when resuming.
  2. The config.transaction cloner for resharding must not miss a document when resuming.

When the donor shard's cursor is fully exhausted, the config.localReshardingOperations.recipient.progress_txn_cloner document can be updated to store {_id: MaxKey} as an indicator that resuming is no longer necessary.



 Comments   
Comment by Githook User [ 25/Nov/20 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-49900 Fix resharding txn cloner unit tests on windows
Branch: master
https://github.com/mongodb/mongo/commit/7de2ef23e68f5735b5c55670b05dd25b82ae442f

Comment by Githook User [ 19/Nov/20 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-49900 Update progress document following each batch of config.transactions cloner
Branch: master
https://github.com/mongodb/mongo/commit/f95b72221b4fa0d9879dde9e2e834483b3018fc3

Generated at Thu Feb 08 05:21:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.