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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 3
    • Storage - Ra 2021-06-14

      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.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            keith.smith@mongodb.com Keith Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: