[SERVER-43239] numCatchUpOps in repSetGetStatus is incorrect Created: 09/Sep/19  Updated: 29/Oct/23  Resolved: 30/Sep/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.3.1, 4.2.2, 4.0.14

Type: Bug Priority: Major - P3
Reporter: Xuerui Fa Assignee: Xuerui Fa
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2, v4.0
Sprint: Repl 2019-10-07
Participants:

 Description   

numCatchUpOps field in replSetGetStatus appears to be a random number. We suspect it has to do with an implicit conversion from an unsigned int to an int.



 Comments   
Comment by Githook User [ 23/Oct/19 ]

Author:

{'name': 'Samyukta Lanka', 'username': 'lankas', 'email': 'samy.lanka@mongodb.com'}

Message: SERVER-43239 Fixed bug causing numCatchUpOps in repSetGetStatus to be incorrect

(cherry picked from commit 71e4779b0da9e8d58dbb179c49b1a86c5e48c93d)

SERVER-41512 Added tracking for metrics around a node voting in an election

(cherry picked from commit 7538504cb584720c2cbbc6d44ea62d0743b41fcf)

SERVER-41513 Track the time the new term oplog entry was written by primary and applied in secondary

(cherry picked from commit d1da88c8a7a2dabef786a8947730a259ec2f6cec)
Branch: v4.0
https://github.com/mongodb/mongo/commit/2d366bccce21cc1e9a3ee421a30575848960418d

Comment by Githook User [ 16/Oct/19 ]

Author:

{'name': 'Samyukta Lanka', 'username': 'lankas', 'email': 'samy.lanka@mongodb.com'}

Message: SERVER-43239 Fixed bug causing numCatchUpOps in repSetGetStatus to be incorrect

(cherry picked from commit 71e4779b0da9e8d58dbb179c49b1a86c5e48c93d)

SERVER-41512 Added tracking for metrics around a node voting in an election

(cherry picked from commit 7538504cb584720c2cbbc6d44ea62d0743b41fcf)

SERVER-41513 Track the time the new term oplog entry was written by primary and applied in secondary

(cherry picked from commit efde009845f32d8de2d094088628e67608bfa419)
Branch: v4.2
https://github.com/mongodb/mongo/commit/9a9b82e95a88c5ce25c958690c2d3365bc62bacc

Comment by Githook User [ 27/Sep/19 ]

Author:

{'username': 'XueruiFa', 'email': 'xuerui.fa@mongodb.com', 'name': 'Xuerui Fa'}

Message: SERVER-43239 Fixed bug causing numCatchUpOps in repSetGetStatus to be incorrect
Branch: master
https://github.com/mongodb/mongo/commit/71e4779b0da9e8d58dbb179c49b1a86c5e48c93d

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