[SERVER-57585] oplog_visibility.js prints null 'next' timestamp for missing oplog entry Created: 09/Jun/21  Updated: 29/Oct/23  Resolved: 10/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.3, 5.1.0-rc0

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

Issue Links:
Backports
Related
related to SERVER-59214 include query results in oplog_visibi... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Execution Team 2021-06-14
Participants:
Linked BF Score: 77

 Description   

When the oplog_visibility.js test fails, it includes the previous and next timestamps in the assertion message. A sample output looks like this:

uncaught exception: Error: [Timestamp(1621310414, 191)] != [Timestamp(1621310414, 192)] are not equal : {
"Missing" : Timestamp(1621310414, 191),
"ObservedIdx" : "190",
"PrevObserved" : Timestamp(1621310414, 190),
"NextObserved" : null
} :
doassert@src/mongo/shell/assert.js:20:14
assert.eq@src/mongo/shell/assert.js:179:9
testOplog@jstests/replsets/oplog_visibility.js:95:13
@jstests/replsets/oplog_visibility.js:116:5
@jstests/replsets/oplog_visibility.js:6:2
failed to load: jstests/replsets/oplog_visibility.js
exiting with code -3

It seems the NextObserved timestamp is always null even when the current index is not the at end of the list.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 13/Aug/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-57585 fix array indexes in oplog_visibility.js for assertion message

(cherry picked from commit 16e34278c5bde6d33babc426d3d8ee3af068ee60)
Branch: v5.0
https://github.com/mongodb/mongo/commit/174293fe54c136fed21a40e44b0521ba099bd67a

Comment by Githook User [ 10/Jun/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-57585 fix array indexes in oplog_visibility.js for assertion message
Branch: master
https://github.com/mongodb/mongo/commit/16e34278c5bde6d33babc426d3d8ee3af068ee60

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