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

Set sub-level error code and message with tests for rollback and compact workflows

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT12.0.0, 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: APIs
    • None
    • Storage Engines
    • 8
    • StorEng - 2025-01-21, StorEng - 2025-02-04

      After milestone 2, the capability to set a sub-level error code and a message should be done. This ticket involves reproducing the rollback and compact workflows and making sure that the get_last_error API works as appropriate. The idea is that the API should be able to provide more information on why ROLLBACK or EINVAL has been returned from the session API call. Follow these scenarios:

      • EINVAL, WT_COMPACTION_ALREADY_RUNNING, Cannot reconfigure background compaction while it's already running
      • WT_ROLLBACK, WT_CACHE_OVERFLOW, transaction rolled back because of cache overflow
      • WT_ROLLBACK, WT_WRITE_CONFLICT, conflict between concurrent operations
      • WT_ROLLBACK, WT_OLDEST_FOR_EVICTION, oldest pinned transaction ID rolled back for eviction

      The expectation is that in each of the scenarios a SUB-LEVEL error code and message should be set.

      Definition of Done
      Unit test and python scenarios are created where they reproduced the problem, and made sure that they return the appropriate sub-level error code and message.

            Assignee:
            dylan.liang@mongodb.com Dylan Liang (Inactive)
            Reporter:
            jie.chen@mongodb.com Jie Chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: