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

Fix a race condition opening/closing the shared cache

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT3.2.0, 4.1.9
    • Affects Version/s: None
    • Component/s: None
    • None
    • 3
    • Storage Engines 2018-12-31, Storage Engines 2019-01-14, Storage Engines 2019-01-28, Storage Engines 2019-02-11

      During wtperf shared cache stress testing in wiredtiger-test-wtperf job on 'tinderbox', double-linked list corruption was detected as below:

      http://build.wiredtiger.com:8080/job/wiredtiger-test-wtperf/4572/console

      + for file in `ls $dir`
      + ./bench/wtperf/wtperf -O ../bench/wtperf/stress//shared-cache-stress.wtperf -o verbose=2
      Workload configuration:
      	Home: WT_TEST
      	Table name: test
      	Connection configuration: create,statistics=(fast),statistics_log=(json,wait=1),shared_cache=(name=wt-cache,size=536870912,reserve=10MB,chunk=20MB,)
      	Session configuration: 
      	Creating new table: key_format=S,value_format=S,type=lsm,exclusive=true,allocation_size=4kb,internal_page_max=64kb,leaf_page_max=4kb,split_pct=100,allocation_size=4KB,key_gap=10,split_pct=75,internal_page_max=4KB,internal_key_truncate=false,prefix_compression=false,leaf_item_max=1433,type=file,internal_item_max=1433,exclusive=true,leaf_page_max=4KB,block_compressor=,
      	Key size: 20, value size: 100
      	Populate threads: 1, inserting 50000 rows
      	Workload seconds, operations: 600, 0
      	Workload configuration(s):
      		1 threads (inserts=1, reads=0, updates=0, truncates= 0)
      		1 threads (inserts=0, reads=1, updates=0, truncates= 0)
      	Checkpoint threads, interval: 1, 100
      	Reporting interval: 5
      	Sampling interval: 0
      	Verbosity: 2
      Starting 1 populate thread(s) for 50000 items
      Finished load of 50000 items
      Load time: 2.16
      load ops/sec: 23191
      *** Error in `./bench/wtperf/wtperf': corrupted double-linked list: 0x00007f107801b5d0 ***
      [1545006445:655749][10323:0x7f1088e5f700], connection: __wt_spin_lock, 174: pthread_mutex_lock: cache shared pool: Invalid argument
      [1545006445:655791][10323:0x7f1088e5f700], connection: __wt_panic, 523: the process must exit and restart: WT_PANIC: WiredTiger library panic
      [1545006445:655798][10323:0x7f1088e5f700], connection: __wt_abort, 30: aborting WiredTiger library
      /tmp/jenkins1223796715321150815.sh: line 5: 10323 Aborted                 (core dumped) ./bench/wtperf/wtperf -O $dir/$file -o verbose=2 

            Assignee:
            sue.loverso@mongodb.com Susan LoVerso
            Reporter:
            luke.chen@mongodb.com Luke Chen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: