Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12710

Docs for SERVER-41035: Rollback should kill all user operations before taking RSTL lock in X.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.12
    • manual, Server
    • None

    Description

      Description

      Description:

      No documentation summary in engineering ticket

      Engineering Ticket Description:

      Currently, there is a  3 way deadlock. Assume that we are transitioning from secondary to rollback.

      • Thread A (Read thread)  acquires RSTL lock in IX and  blocked by a prepared txn due to prepare conflict.
      • Rollback enqueues RSTL lock in X mode. And blocked behind A.
      • Prepared txn won’t be able commit until we transition out of rollback.

      Alternatively, thread A might have got blocked on prepared transaction due to conflicting DB/ collection lock. For eg. dbhash cmd.

      EDIT: Blocked due to conflicting mongoDB locks  is not possible as secondary prepared txn yield mongoDB locks.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Issue Links

          Activity

            People

              kay.kim@mongodb.com Kay Kim (Inactive)
              kay.kim@mongodb.com Kay Kim (Inactive)
              Jess Mokrzecki Jess Mokrzecki
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 43 weeks, 3 days ago