Deadlock on restarting the node with a prepared transaction acquiring the global lock

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • ALL
    • Repl 2025-02-17, Repl 2025-03-03, Repl 2025-03-17
    • 12
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Acquiring the global lock in the initAndListen function while initialization mongod after starting up replication is dangerous as we might reconstruct a prepared transaction which acquire the global lock and keep it, which will cause a deadlock.

       

       

      You can repro it by adding a sleep before this line and run jstests/replsets/ddl_op_behind_transaction_fails_in_shutdown.js

              Assignee:
              Unassigned
              Reporter:
              Moustafa Maher
              Votes:
              0 Vote for this issue
              Watchers:
              18 Start watching this issue

                Created:
                Updated: