Add diagnostics for silent failures in WT_TRET macro usage within __checkpoint_db_internal

XMLWordPrintableJSON

      Issue Summary

      The macro WT_TRET is used inside the function __checkpoint_db_internal, and it may silently update the ret variable if a call fails. This can make it difficult to diagnose failures, as errors may go unnoticed.

      Context

      The following function calls within __checkpoint_db_internal are candidates where this issue may occur:

      • __wt_txn_rollback
      • __wt_disagg_put_crypt_helper
      • __wt_disagg_put_checkpoint_meta

      Currently, there is no diagnostic code to alert when WT_TRET updates ret due to a failure in these calls.

      Proposed Solution

      Add diagnostic code to log or otherwise surface when WT_TRET updates ret in __checkpoint_db_internal. This will help identify and debug silent failures in the above candidate function calls.


      Original Slack thread: Slack Thread
      This ticket was generated by AI from a Slack thread.

            Assignee:
            Etienne Petrel
            Reporter:
            Memento Slack Bot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: