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

Avoid deadlocks in wiredtiger_prepare_conflict.h

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Execution Team 2022-02-21, Execution Team 2022-03-07

      In preparation of WT-8747 it was discovered after applying the preliminary patch that there is potential for deadlocking the server with the following sequence of actions:

      • Transaction A commits data with commit_timestamp=20,durable_timestamp=30
      • Transaction B begins at timestamp 25 and attempts to read data, leading to a WT_PREPARED_CONFLICT as A has not yet been made durable and waiting until another transaction commits or aborts.{{}}
      • Transaction B is deadlocked if there are no more transactions happening

      To avoid this a solution is to add a timeout mechanism that will retry the method even if a transaction has not yet been committed/rolled back so that it can pick up eventually when the data has been made durable.

            Assignee:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: