Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-57585

oplog_visibility.js prints null 'next' timestamp for missing oplog entry

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.3, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Execution Team 2021-06-14
    • 77

      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.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: