[SERVER-53907] Donors should report approxBytesToClone and approxDocumentsToClone Created: 20/Jan/21  Updated: 29/Oct/23  Resolved: 12/Feb/21

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

Type: New Feature Priority: Major - P3
Reporter: Lamont Nelson Assignee: Lamont Nelson
Resolution: Fixed Votes: 0
Labels: PM-234-M3, PM-234-T-autocommits
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-53908 Aggregate the donor approxBytesToCopy... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-02-22
Participants:
Story Points: 1

 Description   

Should record these metrics in the DonorShardEntry of the coordinator document.

Donor shards report these numbers for their slice of the data when reporting their minFetchTimestamp and for the coordinator to propagate the sum to recipient shards

metrics source:
https://github.com/mongodb/mongo/blob/06b4a33530bfd58fab55e1fdda506b51f75f1ec5/src/mongo/db/catalog/collection.h#L526-L528

update minFetchTimestamp for the coordinator:
https://github.com/mongodb/mongo/blob/06b4a33530bfd58fab55e1fdda506b51f75f1ec5/src/mongo/db/s/resharding/resharding_donor_service.cpp#L436



 Comments   
Comment by Githook User [ 12/Feb/21 ]

Author:

{'name': 'LaMont Nelson', 'email': 'lamont.nelson@mongodb.com', 'username': 'lamontnelson'}

Message: SERVER-53907: resharding donors report approxBytesToClone and approxDocumentsToClone
Branch: master
https://github.com/mongodb/mongo/commit/76c68752a6b4c1f0b04f45fbd59ee57237e45993

Comment by Lamont Nelson [ 11/Feb/21 ]

code review: https://mongodbcr.appspot.com/737740002/

Comment by Lamont Nelson [ 09/Feb/21 ]

$collStats gets data from here:
src/mongo/db/stats/storage_stats.cpp:122 - storageSize
src/mongo/db/stats/storage_stats.cpp:103 - numRecords

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