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

checkOplogs function should dump more oplog entries on failure

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.16, 3.5.13
    • Affects Version/s: None
    • Component/s: Replication
    • Fully Compatible
    • v3.4
    • Repl 2017-09-11, Repl 2017-10-02

      In replsettest.js, the checkOplogs function verifies that the oplogs of each node in a replica set match. If there is a discrepancy between two oplogs, it will currently print the last 10 oplog entries of each node to the logs. A test may execute hundreds or thousands of operations, and this amount (10 entries) is somewhat arbitrary and not always helpful when trying to debug a failure. We should consider increasing this amount significantly, to 100 entries or 1000, or possibly just dumping the entire oplog of each node. This is (hopefully) not a check that fails often, so when it does, it would be nice to have as much debugging information as possible. Dumping the entire oplog of each node to the logs could aid with this.

            Assignee:
            katherine.walker@mongodb.com Katherine Walker (Inactive)
            Reporter:
            william.schultz@mongodb.com Will Schultz
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: