Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-7279

Allow multiple terminate calls for storage source extension

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.1, 4.4.8, 5.0.2, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      To allow for standalone testing of WT_STORAGE_SOURCE interfaces, we added the WT_CONNECTION::get_storage_source() API.  This looks up a storage source that was added by name during a wiredtiger_open call.  A consequence of this is that a test application (or any application) can get a storage source object and call its terminate method.  That method frees its storage.  Then when WT_CONNECTION::close is called, WT also calls terminate on the storage source pointer, but it has been freed.

      To reproduce, modify test_tiered06.py to call local.terminate.

            Assignee:
            donald.anderson@mongodb.com Donald Anderson
            Reporter:
            donald.anderson@mongodb.com Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: