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

Update WT_DATA_HANDLE to support different types of backing storage for Btrees

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:

      Description

      Currently a dhandle of type WT_DHANDLE_TYPE_BTREE is assumed live in a single file. I.e., it has a URI of the form, file:name.wt.  

      Tiered storage introduces Btrees that use tiered: URIs, which describe the combination of local files and objects that hold the BTree.

      The goal of this ticket is to update the WiredTiger code so that a single dhandle can represent either form of BTree.  This will ensure that various bits of code that make decisions based on dhandle->type == WT_DHANDLE_TYPE_BTREE will continue to work without needing to know that there are two different ways the BTree might be representing on the underlying storage.

      This will consist of the following pieces of work:

      1. Introduce new dhandle flags to indicate whether a btree is stored in a single file or a tiered set of files/objects
      2. Eliminate the WT_DHANDLE_TYPE_TIERED and WT_DHANDLE_TYPE_TIERED_TREE types in favor of appropriate settings of the above flags.
      3. Examine existing code that performs checks for dhandle->type == WT_DHANDLE_TYPE_BTREE and ensure that the above changes won't break anything.
      4. Examine existing code that performs checks for WT_PREFIX_MATCH(uri, "file:") and update as needed to make sure it will behave correctly for tiered Btrees.

       

        Attachments

          Activity

            People

            Assignee:
            backlog-server-storage-engines Backlog - Storage Engines Team
            Reporter:
            keith.smith Keith Smith
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: