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

timestamped_reads_wait_for_prepare_oplog_visibility.js should insert documents with write concern majority to guarantee visibility in transactions

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • None
    • ALL
    • Repl 2019-07-29
    • 13

    Description

      It is possible for timestamped_reads_wait_for_prepare_oplog_visibility.js to fail if the writes we do are ahead of the all committed timestamp and do not make it into the transaction. This is much more likely in suites like logical_session_cache_replication_100ms_refresh because that suite runs a lot of background operations like the LogicalSessionCacheReaper that could hold back the write from making it into the all committed.

      We should have these inserts be written with majority write concern to guarantee that they will make it into the all committed snapshot.

      Attachments

        Activity

          People

            jason.chan@mongodb.com Jason Chan
            jason.chan@mongodb.com Jason Chan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: