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

Rollback can used unbounded memory

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.10
    • Component/s: None
    • Labels:
      None
    • Replication
    • ALL

      During rollback as we scan backwards in our oplog finding entries that must be rolled back, we save in memory copies of the the entire oplog entry here and here, if I'm reading the code correctly. If there is a lot of oplog to roll back this could be a lot of memory, resulting in OOM.

      This code appears to have completely changed in 3.6, and I think it may not have the same problem. If so we can mark this issue fixed in 3.6 and/or dup it to the ticket that fixed the issue, using this ticket to track the issue and the fix.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            bruce.lucas@mongodb.com Bruce Lucas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: