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

Additional info when rollback_to_stable fails

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage - Ra 2021-12-13, Storage - Ra 2022-01-10, Storage - Ra 2022-01-24, Storage - Ra 2022-03-07

      BF-23021 failed because an error when calling rollback_to_stable.

      message: [1634632529:775098][18712:140730220171872], txn rollback_to_stable: int __cdecl __rollback_to_stable_check(struct __wt_session_impl *), 1270: rollback_to_stable illegal with active transactions: Invalid argument
      

      It is a debug build so extra info is printed in the log

      "WiredTiger message","attr":{"message":"Transaction state of active sessions:"}
      "WiredTiger message","attr":{"message":"ID: 8764, pinned ID: 8764, metadata pinned ID: 0, name: WT_CURSOR.insert"}
      "WiredTiger message","attr":{"message":"transaction id: 8764, mod count: 10, snap min: 8764, snap max: 8764, snapshot count: 0, commit_timestamp: (0, 0), durable_timestamp: (0, 0), first_commit_timestamp: (0, 0), prepare_timestamp: (0, 0), pinned_durable_timestamp: (0, 0), read_timestamp: (0, 0), checkpoint LSN: [0][0], full checkpoint: false, rollback reason: , flags: 0x0080080c, isolation: WT_ISO_SNAPSHOT"}
      "WiredTiger error","attr":{"error":22,"message":"[1634632529:775098][18712:140730220171872], txn rollback_to_stable: int __cdecl __rollback_to_stable_check(struct __wt_session_impl *), 1270: rollback_to_stable illegal with active transactions: Invalid argument"}
      

      However, it is still difficult to understand where this active transaction is coming from. If the error message could contain which WT table / mongod collection the transaction is affecting that would be helpful.

            Assignee:
            will.korteland@mongodb.com Will Korteland
            Reporter:
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: