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

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • ALL
    • Repl 2019-07-29
    • 13

      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.

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

              Created:
              Updated:
              Resolved: