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

Pause the WiredTigerSizeStorer during Rollback To Stable

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Execution Team 2021-11-15

      Description

      SERVER-58311 discovered that mongod calls into WiredTiger Rollback To Stable (RTS) while holding the sizeStorer.wt dhandle. This is not expected as WiredTiger usually requires RTS to have exclusive access to a dhandle. This is observed when building the server with these non-default flags.

      E  STORAGE  22435   [BackgroundSync] "WiredTiger error","attr":{"error":16,"message":"[1625743985:510865][6205:0x7f6a41a84700], file:sizeStorer.wt, txn rollback_to_stable: __rollback_to_stable_btree_apply, 1522: file:sizeStorer.wt: unable to open handle, error indicates handle is unavailable due to concurrent use: Device or resource busy"}
      

       

      Add a pause/resume API to WiredTigerSizeStorer. Pause the WiredTigerSizeStorer after syncing the sizeInfo and resume it after completing the RTS.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gregory.wlodarek Gregory Wlodarek
              Reporter:
              josef.ahmad Josef Ahmad
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: