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

ReplSetTest dumpOplog function should print entire oplog at once with jsTestLog

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.6.0-rc1
    • None
    • Replication
    • Fully Compatible

    Description

      The dumpOplog function in ReplSetTest prints out the oplog of a given node by iterating over each element in a cursor on that node's oplog. Since it makes a separate print call for each oplog entry, the output can get interleaved with other log messages, making it harder to read the oplog entries in order. We should improve this by building up a JSON string of all the oplog entries first, and then printing it with one call to jsTestLog.

      Attachments

        Activity

          People

            judah.schvimer@mongodb.com Judah Schvimer
            william.schultz@mongodb.com William Schultz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: