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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.9.0, 4.4.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • 3
    • Storage - Ra 2021-03-08

      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.

            Assignee:
            haseeb.bokhari@mongodb.com Haseeb Bokhari (Inactive)
            Reporter:
            haseeb.bokhari@mongodb.com Haseeb Bokhari (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: