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

Additional info when rollback_to_stable fails

    XMLWordPrintable

    Details

    • Type: Task
    • Status: In Progress
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      Storage - Ra 2022-01-10

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: