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

txn_index_catalog_changes.js session garbage collection can deadlock with fsync lock in consistency checks

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.1, 6.0.4, 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v6.1, v6.0
    • Execution Team 2022-11-14
    • 19

      txn_index_catalog_changes.js has a session object that goes out of scope before consistency checks are performed. When performing these consistency checks, we do an fsync lock. When the session object is garbage collected, it will try to run abortTransaction. If this occurs while the server is fsync locked, we can get stuck because the abortTransaction must wait for current optime to be majority committed before responding with NoSuchTransaction.

            Assignee:
            gregory.noma@mongodb.com Gregory Noma
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: