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

TemporaryRecordStores should destruct by queueing themselves for dropping

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2021-10-18, Execution Team 2021-11-01

      Our TemporaryRecordStore requires that callers “finalize” by dropping the table (excluding “keeping” it which is used by resumable index builds). The API is a bit clumsy because it requires callers to clean up by dropping the RS, which needs to be done under a Global lock. If this does not happen, the table gets leaked until the next restart.

      We can improve this API by allowing the destructor to queue up the drop with the drop-pending ident reaper and a 0 timestamp. This would reap the table immediately in the next pass (every second) and loosens the requirements for the calling operation in addition to making it less likely to leak resources.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: