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

Make the "bad file descriptor" test resilient against crashing

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT3.2.1, 4.3.1, 4.2.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • 3
    • Storage Engines 2019-06-03
    • v4.2

      There's a wiredtiger panic detected during checkpoint reconciliation processing while running test_bug018 Python test, on kodkod-aws

      http://build.wiredtiger.com:8080/job/wiredtiger-test-unit-long/3920/

      ======================================================================
      ERROR: test_bug018.test_bug018.test_bug018 (subunit.RemotedTestCase)
      test_bug018.test_bug018.test_bug018
      ----------------------------------------------------------------------
      _StringException: lost connection during test 'test_bug018.test_bug018.test_bug018'
      
      ---------------------------------------------------------------------- 

      There's a core generated, and the stack trace is as below: 

      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
      #1  0x00007fd2a3e7b801 in __GI_abort () at abort.c:79
      #2  0x00007fd2a21ad24a in __wt_abort (session=0x56091857cde8) at ../src/os_common/os_abort.c:32
      #3  0x00007fd2a220b3e8 in __wt_panic (session=0x56091857cde8) at ../src/support/err.c:527
      #4  0x00007fd2a207cf33 in __wt_block_panic (session=0x56091857cde8) at ../src/block/block_mgr.c:650
      #5  0x00007fd2a207645c in __ckpt_process (session=0x56091857cde8, block=0x560918f35a90, ckptbase=0x560918f32160) at ../src/block/block_ckpt.c:725
      #6  0x00007fd2a2075867 in __wt_block_checkpoint (session=0x56091857cde8, block=0x560918f35a90, buf=0x560918f34fc8, ckptbase=0x560918f32160,
          data_checksum=true) at ../src/block/block_ckpt.c:278
      #7  0x00007fd2a207c132 in __bm_checkpoint (bm=0x56091719f560, session=0x56091857cde8, buf=0x560918f34fc8, ckptbase=0x560918f32160,
          data_checksum=true) at ../src/block/block_mgr.c:67
      #8  0x00007fd2a20b01f8 in __wt_bt_write (session=0x56091857cde8, buf=0x560918f34fc8, addr=0x0, addr_sizep=0x0, compressed_sizep=0x0,
          checkpoint=true, checkpoint_io=true, compressed=false) at ../src/btree/bt_io.c:384
      #9  0x00007fd2a21dfe99 in __rec_write_wrapup (session=0x56091857cde8, r=0x560918f34e80, page=0x5609172e4f60) at ../src/reconcile/rec_write.c:2421
      #10 0x00007fd2a21daf0b in __wt_reconcile (session=0x56091857cde8, ref=0x560916edd9d8, salvage=0x0, flags=1, lookaside_retryp=0x0)
          at ../src/reconcile/rec_write.c:179
      #11 0x00007fd2a20dc32c in __wt_sync_file (session=0x56091857cde8, syncop=WT_SYNC_CHECKPOINT) at ../src/btree/bt_sync.c:337
      #12 0x00007fd2a2228cd4 in __checkpoint_tree (session=0x56091857cde8, is_checkpoint=true, cfg=0x7ffe95e2df60) at ../src/txn/txn_ckpt.c:1682
      #13 0x00007fd2a2228fff in __checkpoint_tree_helper (session=0x56091857cde8, cfg=0x7ffe95e2df60) at ../src/txn/txn_ckpt.c:1798
      #14 0x00007fd2a2225583 in __checkpoint_apply (session=0x56091857cde8, cfg=0x7ffe95e2df60, op=0x7fd2a2228f70 <__checkpoint_tree_helper>)
          at ../src/txn/txn_ckpt.c:217
      #15 0x00007fd2a2226f9c in __txn_checkpoint (session=0x56091857cde8, cfg=0x7ffe95e2df60) at ../src/txn/txn_ckpt.c:908
      #16 0x00007fd2a2227987 in __txn_checkpoint_wrapper (session=0x56091857cde8, cfg=0x7ffe95e2df60) at ../src/txn/txn_ckpt.c:1106
      #17 0x00007fd2a2227b03 in __wt_txn_checkpoint (session=0x56091857cde8, cfg=0x7ffe95e2df60, waiting=true) at ../src/txn/txn_ckpt.c:1170
      #18 0x00007fd2a2109852 in __conn_close (wt_conn=0x560918633420, config=0x7fd2a440152c "") at ../src/conn/conn_api.c:1128
      #19 0x00007fd2a24b4ca8 in _wrap_Connection_close (self=<optimized out>, args=<optimized out>) at wiredtiger_wrap.c:8784 

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

              Created:
              Updated:
              Resolved: