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

salvage splits

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.4.0
    • Component/s: None
    • Labels:

      Description

      If salvage splits a page, it results in tears because there's no parent.

      Here's the CONFIG:

      ############################################
      #  RUN PARAMETERS
      ############################################
      auto_throttle=1
      firstfit=1
      bitcnt=4
      bloom=1
      bloom_bit_count=5
      bloom_hash_count=29
      bloom_oldest=0
      cache=45
      checkpoints=1
      checksum=uncompressed
      chunk_size=4
      compaction=0
      compression=none
      data_extend=0
      data_source=file
      delete_pct=41
      dictionary=0
      evict_max=0
      file_type=fixed-length column-store
      backups=0
      huffman_key=0
      huffman_value=0
      insert_pct=9
      internal_key_truncation=1
      internal_page_max=9
      isolation=read-committed
      key_gap=13
      key_max=28
      key_min=23
      leak_memory=0
      leaf_page_max=9
      logging=1
      merge_max=18
      merge_threads=1
      mmap=1
      ops=10000
      prefix_compression=1
      prefix_compression_min=8
      repeat_data_pct=2
      reverse=0
      rows=1000
      runs=0
      split_pct=61
      statistics=1
      threads=1
      value_max=3964
      value_min=8
      wiredtiger_config=
      write_pct=5
      ############################################
      

      Here's the stack:

      (gdb) where
      #0  0x000000000048a7c6 in __wt_ref_is_root (ref=0x0) at btree.i:15
      WT-1  0x0000000000489ec0 in __wt_split_evict (session=0x802c34a00, 
          ref=0x802c1a760, exclusive=1) at src/btree/rec_split.c:884
      WT-2  0x0000000000488811 in __rec_page_dirty_update (session=0x802c34a00, 
          ref=0x802c1a760, exclusive=1) at src/btree/rec_evict.c:170
      WT-3  0x0000000000487b4e in __wt_rec_evict (session=0x802c34a00, 
          ref=0x802c1a760, exclusive=1) at src/btree/rec_evict.c:88
      WT-4  0x000000000047ba24 in __slvg_col_build_leaf (session=0x802c34a00, 
          trk=0x802eb4390, ref=0x802c1a760) at src/btree/bt_slvg.c:1278
      WT-5  0x0000000000477193 in __slvg_col_build_internal (session=0x802c34a00, 
          leaf_cnt=2, ss=0x7fffffffd680) at src/btree/bt_slvg.c:1175
      WT-6  0x0000000000475b36 in __wt_bt_salvage (session=0x802c34a00, 
          ckptbase=0x802c56140, cfg=0x7fffffffd860) at src/btree/bt_slvg.c:271
      WT-7  0x0000000000457634 in __wt_salvage (session=0x802c34a00, 
          cfg=0x7fffffffd860) at src/session/session_salvage.c:42
      WT-8  0x000000000044f64f in __wt_schema_worker (session=0x802c34a00, 
          uri=0x802c27100 "file:wt", file_func=0x457570 <__wt_salvage>, name_func=0, 
          cfg=0x7fffffffd860, open_flags=2052) at src/schema/schema_worker.c:48
      WT-9  0x0000000000452cdd in __session_salvage (wt_session=0x802c34a00, 
          uri=0x802c27100 "file:wt", config=0x51b6fb "force=true")
          at src/session/session_api.c:459
      WT-10 0x0000000000409e99 in salvage () at salvage.c:46
      WT-11 0x0000000000409dd9 in wts_salvage () at salvage.c:140
      WT-12 0x000000000040a8c7 in main (argc=0, argv=0x7fffffffd9f8) at t.c:223
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                keith.bostic Keith Bostic
                Reporter:
                keith.bostic Keith Bostic
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: