[SERVER-53915] Persist total number of oplog entries applied in ReshardingOplogApplier Created: 20/Jan/21  Updated: 06/Nov/23  Resolved: 06/Apr/21

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

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
depends on SERVER-53910 Increment oplogEntriesFetched and opl... Closed
is depended on by SERVER-53912 ReshardingRecipientService instances ... Closed
Duplicate
is duplicated by SERVER-52774 Periodically persist metrics about re... Closed
Problem/Incident
causes SERVER-82838 ReshardingOplogApplier uses {w: "majo... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-03-08, Sharding 2021-03-22, Sharding 2021-04-05, Sharding 2021-04-19
Participants:
Story Points: 2

 Description   

Only the oplog applier metrics need to be tracked specially. The others are tracked on per-collection basis.

oplog applier:
https://github.com/mongodb/mongo/blob/06b4a33530bfd58fab55e1fdda506b51f75f1ec5/src/mongo/db/s/resharding/resharding_oplog_applier.h#L56

current progress update code:
https://github.com/mongodb/mongo/blob/6308db5c83a3e95f4532c63df8b635b8090036ae/src/mongo/db/s/resharding/resharding_oplog_applier.cpp#L470



 Comments   
Comment by Githook User [ 08/Apr/21 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-53915 Re-delete UseReshardingApplicationRules test cases.

These test cases were moved into
resharding_oplog_crud_application_test.cpp as part of
9f32e927f98cea09100e10e7fd564df725a42deb.
Branch: master
https://github.com/mongodb/mongo/commit/4f5a02868f59194b6d7c110311093ba4fdaf7f29

Comment by Githook User [ 06/Apr/21 ]

Author:

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

Message: SERVER-53915 Persist total number of oplog entries applied in ReshardingOplogApplier
Branch: master
https://github.com/mongodb/mongo/commit/fc8eaf32ef28738e9b615c9fa3b8f3c77ec61d90

Comment by Max Hirschhorn [ 30/Mar/21 ]

There has been some confusion for what the work on this represents so I wanted to clarify it a bit more:

Comment by Lamont Nelson [ 20/Jan/21 ]

One test case that was discussed:

  • start resharding operation
  • Perform N inserts while the operation is ongoing
  • assert.soon those inserts are accounted for in the metrics
Generated at Thu Feb 08 05:32:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.