[SERVER-53428] Add 'status' field to initialSyncMetrics Created: 17/Dec/20  Updated: 29/Oct/23  Resolved: 04/Mar/21

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

Type: Task Priority: Major - P3
Reporter: Jason Chan Assignee: Wenbin Zhu
Resolution: Fixed Votes: 0
Labels: former-quick-wins
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-50624 Submit Log Ingestion Rule Request For... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Repl 2021-03-08
Participants:

 Description   

In order to to do SERVER-50624, we must be able to specify a query for initial sync statistics but only for "successful" attempts.

In order to do this, we can do the following:

  • Add a "status" field to InitialSyncStats to indicate whether the initial sync is currently in_progress, success, or failed
  • Currently, we print the stats before we update the attempt info and attempt stats. We should move the log line after incrementing this information so we can properly show the initial sync status as part of the metrics.


 Comments   
Comment by Githook User [ 09/Mar/21 ]

Author:

{'name': 'Wenbin Zhu', 'email': 'wenbin.zhu@mongodb.com', 'username': 'WenbinZhu'}

Message: SERVER-53428 Add initial sync result status in statistics.

(cherry picked from commit fccad833c9081bf0cd61364afdb4ec01ceeb42fa)
Branch: v4.4
https://github.com/mongodb/mongo/commit/e89174d61f14405450ad02aa5e1ba2fd2dd00f77

Comment by Wenbin Zhu [ 08/Mar/21 ]

Need to backport to 4.4 for log ingestion.

Comment by Githook User [ 04/Mar/21 ]

Author:

{'name': 'Wenbin Zhu', 'email': 'wenbin.zhu@mongodb.com', 'username': 'WenbinZhu'}

Message: SERVER-53428 Add initial sync result status in statistics.
Branch: master
https://github.com/mongodb/mongo/commit/fccad833c9081bf0cd61364afdb4ec01ceeb42fa

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