[SERVER-31165] Print mismatched oplog entries in checkReplOplogs Created: 19/Sep/17  Updated: 30/Oct/23  Resolved: 23/Oct/17

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.4.16, 3.6.0-rc1

Type: Task Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Pavithra Vetriselvan
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.4
Sprint: Repl 2017-10-23, Repl 2017-11-13
Participants:
Linked BF Score: 0

 Description   

The simplest approach is probably just to print out the value of the two entries, oplogEntry and otherOplogEntry that are compared here:

if (!bsonBinaryEqual(oplogEntry, otherOplogEntry)) {

This is to aid diagnostics when the check fails.



 Comments   
Comment by Githook User [ 17/May/18 ]

Author:

{'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan', 'name': 'Pavithra Vetriselvan'}

Message: SERVER-31165 added mismatched oplog entries to assert message

(cherry picked from commit 6475f004ad0db96d907e996dd24bad9a2228d3f6)
Branch: v3.4
https://github.com/mongodb/mongo/commit/70bf355975fba4b5bc7779a4ae59b0039c78e618

Comment by Githook User [ 23/Oct/17 ]

Author:

{'email': 'pavithra.vetriselvan@mongodb.com', 'name': 'Pavithra Vetriselvan'}

Message: SERVER-31165 added mismatched oplog entries to assert message
Branch: master
https://github.com/mongodb/mongo/commit/6475f004ad0db96d907e996dd24bad9a2228d3f6

Generated at Thu Feb 08 04:26:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.