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

test/format assert discarding updates

    • Type: Icon: Task Task
    • Resolution: Done
    • WT2.2
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Jenkins failed with the following:

      [1393444942:639259][20767:00f7ffb7ec7f0000], t, file:wt, cursor.search: ../src/btree/bt_discard.c, 323: upd->txnid == WT_TXN_ABORTED || __wt_txn_visible_all(session, upd->txnid)
      

      Config file is:

      ############################################
      #  RUN PARAMETERS
      ############################################
      auto_throttle=1
      firstfit=0
      # bitcnt not applicable to this run
      bloom=1
      bloom_bit_count=7
      bloom_hash_count=26
      bloom_oldest=0
      cache=6
      checksum=uncompressed
      chunk_size=6
      compaction=0
      compression=none
      data_extend=0
      data_source=file
      delete_pct=14
      dictionary=0
      file_type=row-store
      hot_backups=0
      huffman_key=0
      huffman_value=0
      insert_pct=29
      internal_key_truncation=1
      internal_page_max=11
      key_gap=8
      key_max=92
      key_min=26
      leaf_page_max=17
      merge_max=6
      merge_threads=1
      mmap=1
      ops=100000
      prefix_compression=1
      prefix_compression_min=0
      repeat_data_pct=49
      reverse=0
      rows=100000
      runs=100
      split_pct=52
      statistics=1
      threads=29
      value_max=612
      value_min=14
      # wiredtiger_config not applicable to this run
      write_pct=86
      ############################################
      

      Call stack from the assert:

      WT-3  0x00000000004429b5 in __wt_assert (session=0xecb3f0, error=0, 
          file_name=0x665112 "../src/btree/bt_discard.c", line_number=323, 
          fmt=0x6650d4 "%s") at ../src/support/err.c:470
      WT-4  0x00000000004b0627 in __free_update_list (session=0xecb3f0, 
          upd=0x7fec5c0c9d40) at ../src/btree/bt_discard.c:321
      WT-5  0x00000000004b0594 in __free_update (session=0xecb3f0, 
          update_head=0x7fec5c0c99a0, entries=39) at ../src/btree/bt_discard.c:302
      WT-6  0x00000000004b046d in __free_page_row_leaf (session=0xecb3f0, 
          page=0x7fec5c0c9320) at ../src/btree/bt_discard.c:242
      WT-7  0x00000000004affc6 in __wt_page_out (session=0xecb3f0, 
          pagep=0x7fecb7ffe9e0) at ../src/btree/bt_discard.c:77
      WT-8  0x000000000046578c in __wt_rec_evict (session=0xecb3f0, page=0x0, 
          exclusive=0) at ../src/btree/rec_evict.c:122
      WT-9  0x000000000044f549 in __wt_evict_page (session=0xecb3f0, 
          page=0x7fec5c0c9320) at ../src/btree/bt_evict.c:352
      WT-10 0x0000000000450b71 in __wt_evict_lru_page (session=0xecb3f0, is_app=1)
          at ../src/btree/bt_evict.c:1179
      WT-11 0x00000000004aa8d0 in __wt_cache_full_check (session=0xecb3f0)
          at ../src/include/cache.i:93
      WT-12 0x00000000004aaad5 in __cursor_enter (session=0xecb3f0)
          at ../src/include/cursor.i:57
      WT-13 0x00000000004aabae in __curfile_enter (cbt=0x7fec34025890)
          at ../src/include/cursor.i:94
      WT-14 0x00000000004aacd6 in __cursor_func_init (cbt=0x7fec34025890, reenter=1)
          at ../src/include/cursor.i:141
      WT-15 0x00000000004ab215 in __wt_btcur_search (cbt=0x7fec34025890)
          at ../src/btree/bt_cursor.c:175
      WT-16 0x0000000000481812 in __curfile_search (cursor=0x7fec34025890)
          at ../src/cursor/cur_file.c:177
      (gdb) p upd->txnid
      $1 = 179018
      (gdb) p ((WT_CONNECTION_IMPL*)session->iface.connection)->txn_global
      $2 = {current = 179088, last_running = 178978, oldest_id = 178976, 
        scan_count = 0, states = 0xeda180}
      

      The only other thing that might be interesting is that there are a few threads with this call stack:

      Thread 11 (Thread 0x7feca11f4700 (LWP 29393)):
      #0  0x000000378920e054 in __lll_lock_wait () from /lib64/libpthread.so.0
      WT-1  0x00000037892093be in _L_lock_995 () from /lib64/libpthread.so.0
      WT-2  0x0000003789209326 in pthread_mutex_lock () from /lib64/libpthread.so.0
      WT-3  0x00000000004bd850 in __wt_spin_lock (session=0xecd1f0, t=0x7febf40a0060)
          at ../src/include/mutex.i:136
      WT-4  0x00000000004bdf00 in __wt_block_misplaced (session=0xecd1f0, 
          block=0x7febf409ffe0, tag=0x665db3 "free", offset=39986176, size=37376, 
          live=1) at ../src/block/block_ext.c:269
      WT-5  0x00000000004beb6e in __wt_block_free (session=0xecd1f0, 
          block=0x7febf409ffe0, 
          addr=0x7fecb001c960 "\343\001\020\321\300\t\344DTd", <incomplete sequence \362>, addr_size=11) at ../src/block/block_ext.c:549
      WT-6  0x00000000004a03d9 in __bm_free (bm=0x7febf409fee0, session=0xecd1f0, 
          addr=0x7fecb001c960 "\343\001\020\321\300\t\344DTd", <incomplete sequence \362>, addr_size=11) at ../src/block/block_mgr.c:216
      WT-7  0x0000000000471b0c in __rec_write_wrapup (session=0xecd1f0, 
          r=0x7fec3c028db0, page=0x7fec6c0755f0) at ../src/btree/rec_write.c:3906
      WT-8  0x000000000046ab28 in __wt_rec_write (session=0xecd1f0, 
          page=0x7fec6c0755f0, salvage=0x0, flags=5) at ../src/btree/rec_write.c:372
      WT-9  0x0000000000465ec4 in __rec_review (session=0xecd1f0, ref=0x7febf4047f40, 
          page=0x7fec6c0755f0, exclusive=0, merge=0, top=1, 
          inmem_split=0x7feca11f3a10, istree=0x7feca11f3a0c)
          at ../src/btree/rec_evict.c:462
      WT-10 0x000000000046543b in __wt_rec_evict (session=0xecd1f0, 
          page=0x7fec6c0755f0, exclusive=0) at ../src/btree/rec_evict.c:62
      

      I'm sure that

      Unable to find source-code formatter for language: __wt_block_misplaced. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      
      

      isn't as worrying as it sounds..

            Assignee:
            Unassigned Unassigned
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: