Deadlock involving commands acquiring global X lock and prepared transactions waiting for write concern

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • ALL
    • v4.2
    • Repl 2019-10-21, Repl 2019-11-04
    • 21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      DropDatabase or any commands that acquire the global lock in X mode can be blocked by prepared transactions. The enqueued global X lock can block oplog queries which need the global IS lock. If these oplog queries and the data replication are needed by the prepared transaction's write concern, then the prepare transaction cannot make progress. Thus a deadlock occurs.

      In reality, the coordinator may time out and decide to abort the transaction, but this could be an issue for testing.

            Assignee:
            Evin Roesle
            Reporter:
            Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved: