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

Clear partialTxnList when committing a prepared transaction.

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.2.0-rc3, 4.3.1
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Repl 2019-07-15

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: