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

Fix live_open assertion in __wt_block_checkpoint_load

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.1.0, 6.2.0-rc0, 6.1.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • None

      Reported and diagnosed by yuhong.zhang@mongodb.com .  The following assertion occurs:

       #0  0x00007f7c258a2c1f in raise () from /lib64/libpthread.so.0
      #1  0x00007f7c19000402 in __wt_block_checkpoint_load (session=session@entry=0x556efd74e2a0, block=0x556f0397a800, addr=0x556f02eb01a0 "\001\201\201\344\tq\364\374\202\201\344\025F\275\026\203\201\344\065\335\374-\200\200\200\342/\300\317\300", addr_size=30, root_addr=0x7f7bf423c860 "", root_addr_sizep=0x7f7bf423c4b0, checkpoint=false) at src/third_party/wiredtiger/src/block/block_ckpt.c:77
      #2  0x00007f7c19010537 in __bm_checkpoint_load (bm=0x556f02bd8540, session=0x556efd74e2a0, addr=<optimized out>, addr_size=<optimized out>, root_addr=<optimized out>, root_addr_sizep=<optimized out>, checkpoint=false) at src/third_party/wiredtiger/src/block_cache/block_mgr.c:199
      #3  0x00007f7c1903903a in __wt_btree_open (session=session@entry=0x556efd74e2a0, op_cfg=op_cfg@entry=0x7f7bf423d0c0) at src/third_party/wiredtiger/src/btree/bt_handle.c:144
      #4  0x00007f7c190b0bc2 in __wt_conn_dhandle_open (session=session@entry=0x556efd74e2a0, cfg=cfg@entry=0x7f7bf423d0c0, flags=flags@entry=0) at src/third_party/wiredtiger/src/conn/conn_dhandle.c:557
      #5  0x00007f7c191bae62 in __wt_session_get_dhandle (session=0x556efd74e2a0, uri=0x556f0393c450 "file:collection-17-1327158769886492830.wt", checkpoint=0x0, cfg=0x7f7bf423d0c0, flags=0) at src/third_party/wiredtiger/src/session/session_dhandle.c:862
      #6  0x00007f7c191bb564 in __wt_session_get_dhandle (session=0x556efd74e2a0, uri=<optimized out>, checkpoint=<optimized out>, cfg=<optimized out>, flags=0) at src/third_party/wiredtiger/src/session/session_dhandle.c:855
      #7  0x00007f7c191bbead in __wt_session_get_btree_ckpt (session=session@entry=0x556efd74e2a0, uri=uri@entry=0x556f0393c450 "file:collection-17-1327158769886492830.wt", cfg=cfg@entry=0x7f7bf423d0c0, flags=flags@entry=0, hs_dhandlep=hs_dhandlep@entry=0x7f7bf423cd20, ckpt_snapshot=ckpt_snapshot@entry=0x7f7bf423cd70) at src/third_party/wiredtiger/src/session/session_dhandle.c:405
      #8  0x00007f7c190d61c4 in __wt_curfile_open (session=session@entry=0x556efd74e2a0, uri=uri@entry=0x556f0393c450 "file:collection-17-1327158769886492830.wt", owner=owner@entry=0x0, cfg=cfg@entry=0x7f7bf423d0c0, cursorp=cursorp@entry=0x7f7bf423d0b0) at src/third_party/wiredtiger/src/cursor/cur_file.c:1178
      #9  0x00007f7c191b58b4 in __session_open_cursor_int (session=0x556efd74e2a0, uri=<optimized out>, owner=0x0, other=<optimized out>, cfg=<optimized out>, hash_value=14640725495841115961, cursorp=0x7f7bf423d0b0) at src/third_party/wiredtiger/src/session/session_api.c:524
      #10 0x00007f7c191b5268 in __wt_open_cursor (session=session@entry=0x556efd74e2a0, uri=0x556f0393c450 "file:collection-17-1327158769886492830.wt", owner=owner@entry=0x0, cfg=cfg@entry=0x7f7bf423d0c0, cursorp=cursorp@entry=0x7f7bf423d0b0) at src/third_party/wiredtiger/src/session/session_api.c:599
      #11 0x00007f7c19110b96 in __wt_curtable_open (session=session@entry=0x556efd74e2a0, uri=uri@entry=0x556efd71af00 "table:collection-17-1327158769886492830", owner=owner@entry=0x0, cfg=cfg@entry=0x7f7bf423d0c0, cursorp=cursorp@entry=0x7f7bf423d0b0) at src/third_party/wiredtiger/src/cursor/cur_table.c:1067
      #12 0x00007f7c191b57c8 in __session_open_cursor_int (session=0x556efd74e2a0, uri=<optimized out>, owner=0x0, other=<optimized out>, cfg=0x7f7bf423d0c0, hash_value=3944625460426454054, cursorp=0x7f7bf423d0b0) at src/third_party/wiredtiger/src/session/session_api.c:480
      #13 0x00007f7c191b6012 in __session_open_cursor (wt_session=0x556efd74e2a0, uri=<optimized out>, to_dup=0x0, config=0x556f04065710 "", cursorp=0x7f7bf423d130) at src/third_party/wiredtiger/src/session/session_api.c:653
      #14 0x00007f7c1d45d4a0 in mongo::(anonymous namespace)::_openCursor (cursorOut=0x7f7bf423d130, config=<optimized out>, uri="table:collection-17-1327158769886492830", session=0x556efd74e2a0) at /opt/mongodbtoolchain/revisions/c6da1cf7f0b4b60d53566305e59857d3d540dcf7/stow/gcc-v3.IGP/include/c++/8.5.0/bits/basic_string.h:2294
      #15 mongo::WiredTigerSession::getNewCursor (this=0x556efd71a500, uri="table:collection-17-1327158769886492830", config=0x556f04065710 "") at src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp:135
      #16 0x00007f7c1d409014 in mongo::WiredTigerCursor::WiredTigerCursor (this=0x556f040656e8, uri="table:collection-17-1327158769886492830", tableID=21, allowOverwrite=<optimized out>, opCtx=0x556f03962200) at /opt/mongodbtoolchain/revisions/c6da1cf7f0b4b60d53566305e59857d3d540dcf7/stow/gcc-v3.IGP/include/c++/8.5.0/bits/basic_string.h:2294

      He states:

      This seems like from a pretty recent commit we pushed a few days ago [that is, WT-7833] and in the commit we removed the check of the value of HAVE_DIAGNOSTIC in wt_block_checkpoint_load() where we set block.live_open to true, but the check still exists in wt_block_checkpoint_unload() where we set it back to false. Could this be a bug?

            Assignee:
            donald.anderson@mongodb.com Donald Anderson
            Reporter:
            donald.anderson@mongodb.com Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: