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

Update assert in row_modify to accommodate both WT_TXN_NONE and WT_TXN_ABORTED for tombstone updates

    • 5
    • 2024-05-28 - FOLLOW ON SPRINT, 2024-06-11 - Dinosaurs go rawr

      spinlock-gcc-test on ubuntu2004

      Host: i-0e51856844beb10f8
      Project: wiredtiger
      Commit: 1dff8cc9

      Task Logs:

      spinlock-gcc-test task_log

      Logs:

      [pid:63829]: ERROR: test_rollback_to_stable06.test_rollback_to_stable06.test_rollback_to_stable(row_integer.no_inmem.prepare.evict.8)
      ----------------------------------------------------------------------
      [pid:63829]: testtools.testresult.real._StringException: lost connection during test 'test_rollback_to_stable06.test_rollback_to_stable06.test_rollback_to_stable(row_integer.no_inmem.prepare.evict.8)'
      ----------------------------------------------------------------------
      Ran 13661 tests in 3767.080s
      

      logs

      call stack

      call stack

      [2024/05/21 10:19:16.615] #2  0x00007f7f7da142ef in __wt_abort (session=session@entry=0x3e545b0) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/os_common/os_abort.c:30
      [2024/05/21 10:19:16.721] #3  0x00007f7f7d912b01 in __wt_row_modify (cbt=cbt@entry=0x7f7f08000b90, key=key@entry=0x7f7f08000cb0, value=value@entry=0x0, upd_arg=0x7f7f08048ae0, modify_type=modify_type@entry=0, exclusive=exclusive@entry=false, restore=false) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/btree/row_modify.c:128
      [2024/05/21 10:19:16.736] #4  0x00007f7f7d9cd403 in __wt_hs_modify (hs_cbt=hs_cbt@entry=0x7f7f08000b90, hs_upd=<optimized out>) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/history/hs_cursor.c:28
      [2024/05/21 10:19:16.748] #5  0x00007f7f7d97261d in __curhs_insert (cursor=0x7f7f08048350) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/cursor/cur_hs.c:996
      [2024/05/21 10:19:16.767] #6  0x00007f7f7d9d0e85 in __hs_insert_record (session=session@entry=0x3e545b0, cursor=0x7f7f08048350, btree=btree@entry=0x20caf40, key=0x7f7f0801e7d0, type=type@entry=3 '\003', hs_value=0x7f7f08002600, tw=0x7f7f76e300a0, error_on_ts_ordering=false) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/history/hs_rec.c:238
      [2024/05/21 10:19:16.767] #7  0x00007f7f7d9d2577 in __wt_hs_insert_updates (session=session@entry=0x3e545b0, r=r@entry=0x7f7f080bdc00, multi=multi@entry=0x7f7f08047f30) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/history/hs_rec.c:704
      [2024/05/21 10:19:16.768] #8  0x00007f7f7da4cc65 in __rec_hs_wrapup (session=session@entry=0x3e545b0, r=r@entry=0x7f7f080bdc00) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/reconcile/rec_write.c:2688
      [2024/05/21 10:19:16.769] #9  0x00007f7f7da542c1 in __rec_write_wrapup (session=session@entry=0x3e545b0, r=r@entry=0x7f7f080bdc00, page=page@entry=0x2a056c0) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/reconcile/rec_write.c:2430
      [2024/05/21 10:19:16.779] #10 0x00007f7f7da55fe9 in __reconcile (session=session@entry=0x3e545b0, ref=ref@entry=0x213e4d0, salvage=salvage@entry=0x0, flags=flags@entry=352, page_lockedp=page_lockedp@entry=0x7f7f76e3177f) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/reconcile/rec_write.c:328
      [2024/05/21 10:19:16.779] #11 0x00007f7f7da55377 in __wt_reconcile (session=session@entry=0x3e545b0, ref=ref@entry=0x213e4d0, salvage=salvage@entry=0x0, flags=flags@entry=352) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/reconcile/rec_write.c:95
      [2024/05/21 10:19:16.781] #12 0x00007f7f7d9c74f2 in __evict_reconcile (session=session@entry=0x3e545b0, ref=ref@entry=0x213e4d0, evict_flags=evict_flags@entry=0) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/evict/evict_page.c:898
      [2024/05/21 10:19:16.795] #13 0x00007f7f7d9ca6fe in __wt_evict (session=session@entry=0x3e545b0, ref=0x213e4d0, previous_state=<optimized out>, flags=flags@entry=0) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/evict/evict_page.c:275
      [2024/05/21 10:19:16.795] #14 0x00007f7f7d9c01b4 in __evict_page (session=session@entry=0x3e545b0, is_server=is_server@entry=true) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/evict/evict_lru.c:2444
      [2024/05/21 10:19:16.795] #15 0x00007f7f7d9c0738 in __evict_lru_pages (session=session@entry=0x3e545b0, is_server=is_server@entry=true) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/evict/evict_lru.c:1194
      [2024/05/21 10:19:16.795] #16 0x00007f7f7d9c5432 in __evict_pass (session=session@entry=0x3e545b0) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/evict/evict_lru.c:782
      [2024/05/21 10:19:16.804] #17 0x00007f7f7d9c6196 in __evict_server (session=session@entry=0x3e545b0, did_work=did_work@entry=0x7f7f76e32a8f) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/evict/evict_lru.c:420
      [2024/05/21 10:19:16.804] #18 0x00007f7f7d9c667c in __wt_evict_thread_run (session=0x3e545b0, thread=0x22e1b60) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/evict/evict_lru.c:325
      [2024/05/21 10:19:16.808] #19 0x00007f7f7dabb58c in __thread_run (arg=0x22e1b60) at /data/mci/123ddb17fc38b4cf6d0d2f30c7b63d71/wiredtiger/src/support/thread_group.c:31
      [2024/05/21 10:19:16.808] #20 0x00007f7f7e60a609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      
      Failed Assert

      Logs:

      file:WiredTigerHS.wt, WT_CURSOR.insert: [WT_VERB_DEFAULT][ERROR]: __wt_row_modify, 128: WiredTiger assertion failed: '!((((((WT_BTREE *)(session)->dhandle->handle)->dhandle)->flags) & (0x020u)) != 0) || (*upd_entry == ((void *)0) || ((*upd_entry)->type == 4 && (*upd_entry)->txnid == 0 && (*upd_entry)->start_ts == 0)) || (upd_arg->type == 4 && upd_arg->start_ts == 0 && upd_arg->next == ((void *)0)) || (upd_arg->type == 4 && upd_arg->next != ((void *)0) && upd_arg->next->type == 3 && upd_arg->next->next == ((void *)0))'. Expression returned false
      

      logs

      spinlock-gcc-test task_log

      Logs:

      [1716248542:214836][63841:0x7f7f7e2b34c0], test_rollback_to_stable06.test_rollback_to_stable06.test_rollback_to_stable(row_integer.no_inmem.prepare.evict.8), file:rollback_to_stable06.wt, txn rollback_to_stable: [WT_VERB_RTS][DEBUG_4]: [UPDATE_CHAIN_VERIFY] aborting any unstable updates on the update chain with rollback_timestamp=(0, 10)
      [1716248542:214846][63841:0x7f7f7e2b34c0], test_rollback_to_stable06.test_rollback_to_stable06.test_rollback_to_stable(row_integer.no_inmem.prepare.evict.8), file:rollback_to_stable06.wt, txn rollback_to_stable: [WT_VERB_RTS][DEBUG_1]: [UPDATE_ABORT] rollback to stable aborting update with txnid=3005, txnid_not_visible=false, stable_timestamp=(0, 10) < durable_timestamp=(0, 51): true, prepare_state=WT_PREPARE_RESOLVED, flags 0x1
      [1716248542:214857][63841:0x7f7f7e2b34c0], test_rollback_to_stable06.test_rollback_to_stable06.test_rollback_to_stable(row_integer.no_inmem.prepare.evict.8), file:rollback_to_stable06.wt, txn rollback_to_stable: [WT_VERB_RTS][DEBUG_1]: [UPDATE_ABORT] rollback to stable aborting update with txnid=2005, txnid_not_visible=false, stable_timestamp=(0, 10) < durable_timestamp=(0, 41): true, prepare_state=WT_PREPARE_RESOLVED, flags 0x2
      [1716248542:214867][63841:0x7f7f7e2b34c0], test_rollback_to_stable06.test_rollback_to_stable06.test_rollback_to_stable(row_integer.no_inmem.prepare.evict.8), file:rollback_to_stable06.wt, txn rollback_to_stable: [WT_VERB_RTS][DEBUG_1]: [UPDATE_ABORT] rollback to stable aborting update with txnid=1005, txnid_not_visible=false, stable_timestamp=(0, 10) < durable_timestamp=(0, 31): true, prepare_state=WT_PREPARE_INIT, flags 0x12
      [1716248542:215059][63841:0x7f7f7e2b34c0], test_rollback_to_stable06.test_rollback_to_stable06.test_rollback_to_stable(row_integer.no_inmem.prepare.evict.8), file:rollback_to_stable06.wt, txn rollback_to_stable: [WT_VERB_RTS][DEBUG_4]: [UPDATE_CHAIN_VERIFY] aborting any unstable updates on the update chain with rollback_timestamp=(0, 10)
      

      logs

            Assignee:
            ravi.giri@mongodb.com Ravi Giri
            Reporter:
            Xgen-BuildBaron-User xgen-buildbaron-user
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: