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

Extend handle_general event handler for interrupting cache eviction

    • 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
    • StorEng - 2025-01-21, StorEng - 2025-02-04

      We can extend the current event handler used for interrupting the compact operation, specifically handle_general, and adapt it to be more generic for interrupting user operations involved in cache eviction. WiredTiger will periodically execute the event handler during cache eviction, and interrupt if the callback yields a non-zero return code.

      If a user operation was not involved in cache eviction at the time the session was interrupted, it will complete its execution and return its standard code. However, if the operation is performing cache eviction when an interrupt was called, the WiredTiger API will return the code from the user operation. WiredTiger will allow the API call to complete normally after interrupting eviction work.

            Assignee:
            y.ershov@mongodb.com Yury Ershov
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: