Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-64461

Replace WT_CACHE_FULL error with WT_ROLLBACK for durable engine

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2022-05-30

      There is only one place WiredTiger returns a WT_CACHE_FULL error for the durable storage engine. The error is returned when a session is configured to not wait for more than a certain duration, cache_max_wait_ms, if the application thread is pulled into eviction. Instead, the operation fails, and the application is forced to rollback. The error WiredTiger returns is WT_CACHE_FULL.

      WT-8767 is changing that return to a WT_ROLLBACK error, with a rollback reason set that can be queried by WT_SESSION.get_rollback_reason(). This will make the behaviour consistent with other places in WiredTiger, where the application is asked to roll back for other reasons.

      A server change will be needed wherever a WT_CACHE_FULL error is processed. Also, a new rollback reason will be added by WT-8767, which will need to be captured and processed by the execution layer.

            Assignee:
            yujin.kang@mongodb.com Yujin Kang Park
            Reporter:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: