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

Add check for WT_DHANDLE_DEAD to assertion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT3.2.2, 4.9.0, 4.4.4
    • Component/s: None
    • Labels:
      None

      Description

      The mongodb concurrency_simultaneous test is failing on the master branch due to an assert being hit inĀ __wt_ref_out. The Evergreen failure is here.

      Failing assert in __wt_ref_out:

          WT_ASSERT(session,
            !F_ISSET(ref, WT_REF_FLAG_INTERNAL) || F_ISSET(session->dhandle, WT_DHANDLE_EXCLUSIVE) ||
              !__wt_gen_active(session, WT_GEN_SPLIT, ref->page->pg_intl_split_gen)); 

      Debug info from a spawn host:

      (gdb) bt
      #0  0x00007fd87a0754f5 in raise () from /lib64/libc.so.6
      #1  0x00007fd87a076cd5 in abort () from /lib64/libc.so.6
      #2  0x00007fd870c4a756 in __wt_abort (session=session@entry=0x7fd8686c0348) at src/third_party/wiredtiger/src/os_common/os_abort.c:30
      #3  0x00007fd870c2f3a3 in __wt_ref_out (session=0x7fd8686c0348, ref=0x7fd852354a28) at src/third_party/wiredtiger/src/btree/bt_discard.c:41
      #4  0x00007fd870d4f822 in __wt_evict_file (session=session@entry=0x7fd8686c0348, syncop=syncop@entry=WT_SYNC_DISCARD) at src/third_party/wiredtiger/src/evict/evict_file.c:106
      #5  0x00007fd870cf8bfb in __wt_conn_dhandle_close (session=session@entry=0x7fd8686c0348, final=final@entry=false, mark_dead=mark_dead@entry=false) at src/third_party/wiredtiger/src/conn/conn_dhandle.c:387
      #6  0x00007fd870d0119d in __sweep_discard_trees (dead_handlesp=<optimized out>, session=<optimized out>) at src/third_party/wiredtiger/src/conn/conn_sweep.c:163
      #7  __sweep_server (arg=0x7fd8686c0348) at src/third_party/wiredtiger/src/conn/conn_sweep.c:317
      #8  0x00007fd87a662aa1 in start_thread () from /lib64/libpthread.so.0
      #9  0x00007fd87a12bc4d in clone () from /lib64/libc.so.6
      (gdb) f 3
      #3  0x00007fd870c2f3a3 in __wt_ref_out (session=0x7fd8686c0348, ref=0x7fd852354a28) at src/third_party/wiredtiger/src/btree/bt_discard.c:41
      41          WT_ASSERT(session,
      (gdb) p ref->flags
      $8 = 1 '\001'
      (gdb) p session->dhandle->flags
      $9 = 137
      (gdb) p ref->page->u->intl->split_gen
      $10 = 558 

        Attachments

          Activity

            People

            Assignee:
            sue.loverso Susan LoVerso
            Reporter:
            tammy.bailey Tammy Bailey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: