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

Add error message when bulk cursor can't get exclusive access to dhandle

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:

      Description

      Opening a cursor for bulk load can fail for a pair of similar reasons:

      1. The table isn't newly created
      2. The table is already open (i.e., we can't get exclusive access to the dhandle)

      In the first case, WT fails with EINVAL and returns an error message — see __wt_btree_open()

      bulk-load is only supported on newly created objects

      In second case WT only returns EINVAL, except on LSM which provides a similar error message.

      We should be consistent across all file formats. Since it would be better to provide an explanation to the application, we should change row stores, tiered tables, etc. to follow the example of LSM.

      This will require updating test_bulk01.py to expect the error message.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: