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

Clear partialTxnList when committing a prepared transaction.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.0-rc3, 4.3.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.2
    • Repl 2019-07-15

      When applying oplog entries that were a part of a large transaction, we first add them to partialTxnList and then apply them during the commit. We then clear partialTxnList for the next large transaction.

      Currently, we do not clear partialTxnList when committing a prepared transaction. This means that for large prepared transactions, partialTxnList will have entries that were not part of the same transaction.

      As a part of this ticket, we should also make sure to test the bug in SERVER-41163 with large transactions. We can use initial_sync_update_missing_doc.js for this.

            Assignee:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Reporter:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: