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

test/format fails without a proper error when lz4 required but not compiled with

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      To reproduce compile without lz4 support and then use the following test/format configuration:

      ############################################
      #  RUN PARAMETERS
      ############################################
      abort=0
      alter=0
      auto_throttle=1
      backups=0
      bitcnt=8
      bloom=1
      bloom_bit_count=50
      bloom_hash_count=19
      bloom_oldest=0
      cache=190
      cache_minimum=20
      checkpoints=on
      checkpoint_log_size=47
      checkpoint_wait=5
      checksum=uncompressed
      chunk_size=4
      compaction=0
      compression=lz4
      data_extend=0
      data_source=lsm
      delete_pct=1
      dictionary=0
      direct_io=0
      encryption=none
      evict_max=3
      file_type=row-store
      firstfit=0
      huffman_key=0
      huffman_value=0
      independent_thread_rng=1
      in_memory=0
      insert_pct=92
      internal_key_truncation=1
      internal_page_max=9
      isolation=random
      key_gap=0
      key_max=256
      key_min=256
      leaf_page_max=9
      leak_memory=0
      logging=0
      logging_archive=0
      logging_compression=none
      logging_file_max=62451
      logging_prealloc=1
      long_running_txn=0
      lsm_worker_threads=3
      memory_page_max=5
      merge_max=4
      mmap=1
      modify_pct=2
      ops=0
      prefix_compression=1
      prefix_compression_min=2
      prepare=0
      quiet=1
      read_pct=4
      rebalance=1
      repeat_data_pct=58
      reverse=0
      rows=1000000
      runs=1
      salvage=1
      split_pct=65
      statistics=0
      statistics_server=0
      threads=19
      timer=4
      timing_stress_aggressive_sweep=0
      timing_stress_checkpoint=0
      timing_stress_lookaside_sweep=0
      timing_stress_split_1=0
      timing_stress_split_2=0
      timing_stress_split_3=0
      timing_stress_split_4=0
      timing_stress_split_5=0
      timing_stress_split_6=0
      timing_stress_split_7=0
      timing_stress_split_8=1
      transaction_timestamps=0
      transaction-frequency=60
      truncate=0
      value_max=2049
      value_min=256
      verify=1
      wiredtiger_config=
      write_pct=1
      ############################################
      

      test/format fails with following error:

      t: FAILED: wts_init/450: session->create(session, g.uri, config): table:wt: Invalid argument
      process aborting
      Aborted (core dumped)
      

      It doesn't say why exactly table creation failed. It took some amount of debugging to see the following error being reported under gdb:

      [1559793295:111992][7458:0x7ffff7fdf3c0], t, file:wt.wt, WT_SESSION.create: __compressor_confchk, 213: unknown compressor 'lz4': Invalid argument
      

      It would be great if we could propagate the reason behind the argument error and report it back with test/format

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: