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

__rec_update_save, 35: onpage_upd != NULL || supd_restore: truncate not checking conflict in read committed

    • 8
    • Storage Engines 2020-04-06, Storage - Ra 2020-04-20

      While running test/format configurated for backups with develop as of yesterday afternoon, changeset 070b5d8baa it immediately hit this assertion.

      __rec_update_save, 35: onpage_upd != NULL || supd_restore
      

      This feels similar to WT-5952, but I opened a new ticket since it is a different path and error message.

      Here's the stack:

      (gdb) bt
      #0  0x00007f9fa399c5f7 in raise () from /lib64/libc.so.6
      #1  0x00007f9fa399dce8 in abort () from /lib64/libc.so.6
      #2  0x000000000049b1c1 in __wt_abort (session=0x7f9fa4b618b8) at ../src/os_common/os_abort.c:30
      #3  0x00000000005fc3e1 in __rec_update_save (session=0x7f9fa4b618b8, r=0x7f9f68314d20, ins=0x0, ripcip=0x2ef6970, onpage_upd=0x0, 
          supd_restore=false, upd_memsize=128) at ../src/reconcile/rec_visibility.c:35
      #4  0x00000000005fd69e in __wt_rec_upd_select (session=0x7f9fa4b618b8, r=0x7f9f68314d20, ins=0x0, ripcip=0x2ef6970, vpack=0x7f9f977fd670, 
          upd_select=0x7f9f977fd620) at ../src/reconcile/rec_visibility.c:479
      #5  0x00000000005fa98a in __wt_rec_row_leaf (session=0x7f9fa4b618b8, r=0x7f9f68314d20, pageref=0x2ef6070, salvage=0x0)
          at ../src/reconcile/rec_row.c:786
      #6  0x00000000004b72ea in __reconcile (session=0x7f9fa4b618b8, ref=0x2ef6070, salvage=0x0, flags=140, page_lockedp=0x7f9f977fd91e)
          at ../src/reconcile/rec_write.c:176
      #7  0x00000000004b6f99 in __wt_reconcile (session=0x7f9fa4b618b8, ref=0x2ef6070, salvage=0x0, flags=140) at ../src/reconcile/rec_write.c:87
      #8  0x0000000000472734 in __evict_review (session=0x7f9fa4b618b8, ref=0x2ef6070, evict_flags=0, inmem_splitp=0x7f9f977fd9f3)
          at ../src/evict/evict_page.c:653
      #9  0x0000000000470d89 in __wt_evict (session=0x7f9fa4b618b8, ref=0x2ef6070, previous_state=3 '\003', flags=0) at ../src/evict/evict_page.c:176
      #10 0x000000000046d930 in __evict_page (session=0x7f9fa4b618b8, is_server=false) at ../src/evict/evict_lru.c:2246
      #11 0x000000000046df05 in __wt_cache_eviction_worker (session=0x7f9fa4b618b8, busy=false, readonly=false, pct_full=100.01980030973796)
          at ../src/evict/evict_lru.c:2336
      #12 0x000000000054076b in __wt_cache_eviction_check (session=0x7f9fa4b618b8, busy=false, readonly=false, didworkp=0x0)
          at ../src/include/cache.i:427
      #13 0x0000000000542ebe in __cursor_enter (session=0x7f9fa4b618b8) at ../src/include/cursor.i:165
      #14 0x0000000000543240 in __cursor_func_init (cbt=0x7f9f68258680, reenter=true) at ../src/include/cursor.i:396
      #15 0x00000000005464b4 in __btcur_update (cbt=0x7f9f68258680, value=0x7f9f682587a8, modify_type=3) at ../src/btree/bt_cursor.c:1299
      #16 0x00000000005471f1 in __wt_btcur_update (cbt=0x7f9f68258680) at ../src/btree/bt_cursor.c:1577
      #17 0x00000000004528bb in __curfile_update (cursor=0x7f9f68258680) at ../src/cursor/cur_file.c:366
      #18 0x000000000040c927 in row_update (tinfo=0x3221fa0, cursor=0x7f9f68258680, positioned=false) at ../../../test/format/ops.c:1493
      (gdb) frame 3
      #3  0x00000000005fc3e1 in __rec_update_save (session=0x7f9fa4b618b8, r=0x7f9f68314d20, ins=0x0, ripcip=0x2ef6970, onpage_upd=0x0, 
          supd_restore=false, upd_memsize=128) at ../src/reconcile/rec_visibility.c:35
      35	    WT_ASSERT(session, onpage_upd != NULL || supd_restore);
      (gdb) p supd_restore
      $1 = false
      (gdb) p onpage_upd
      $2 = (WT_UPDATE *) 0x0
      

      You can see that both of those were passed in as those values.

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            sue.loverso@mongodb.com Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: