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

Incorrect stop transaction id when fixing out of order timestamps in history store

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.0, 4.9.0, 4.4.5
    • Component/s: None
    • Labels:
      None

      Description

      In the following lines of code from __hs_fixup_out_of_order_from_pos, the stop transaction id should be same as the existing value:

      /*         
       * We're going to be inserting something immediately after with the same timestamp. Either         
       * another moved update OR the update itself that triggered the correction. In either case,         
       * we should preserve the stop transaction id.        
       */        
      hs_insert_tw.stop_ts = hs_insert_tw.durable_stop_ts = ts;        
      hs_insert_tw.stop_txn = hs_cbt->upd_value->tw.start_txn; 

       

      Also identify why the existing unit tests were unable to catch this bug.

        Attachments

          Activity

            People

            Assignee:
            haseeb.bokhari Haseeb Bokhari
            Reporter:
            haseeb.bokhari Haseeb Bokhari
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: