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

ReplSetTest dumpOplog function should print entire oplog at once with jsTestLog

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc1
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
    • Fully Compatible

      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.

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

              Created:
              Updated:
              Resolved: