1. 25 4月, 2014 8 次提交
    • Y
      a82c492a
    • Y
      e537a840
    • Y
      [Java] Fixed a compile error. · 3e0b93b5
      Yueh-Hsuan Chiang 提交于
      3e0b93b5
    • Y
      [Java] Enable filluniquerandom, readseq, BloomFilter, and 70+ command-line... · 05979493
      Yueh-Hsuan Chiang 提交于
      [Java] Enable filluniquerandom, readseq, BloomFilter, and 70+ command-line options to DbBenchmark.java
      
      Summary:
      * Add filluniquerandom
      * Add readseq, implemented using iterator.
      * Realize most command-line-arguments from db_bench.cc (70+).
      * Some code are commented out as some of the options in Options
        not yet have Java bindings.
      * Add default option to DbBenchmark.
      * RocksDB will now take the ownership of all c++ raw-pointers from Options, which includes a c++ raw-pointer for Filter.
      
      Test Plan: ./jdb_bench.sh --db=/tmp/rocksjava-bench/db --num_levels=6 --key_size=20 --prefix_size=20 --keys_per_prefix=0 --value_size=100 --block_size=4096 --cache_size=17179869184 --cache_numshardbits=6 --compression_ratio=1 --min_level_to_compress=-1 --disable_seek_compaction=1 --hard_rate_limit=2 --write_buffer_size=134217728 --max_write_buffer_number=2 --level0_file_num_compaction_trigger=8 --target_file_size_base=134217728 --max_bytes_for_level_base=1073741824 --disable_wal=0 --wal_dir=/tmp/rocksjava-bench/wal --sync=0 --disable_data_sync=1 --verify_checksum=1 --delete_obsolete_files_period_micros=314572800 --max_grandparent_overlap_factor=10 --max_background_compactions=4 --max_background_flushes=0 --level0_slowdown_writes_trigger=16 --level0_stop_writes_trigger=24 --statistics=0 --stats_per_interval=0 --stats_interval=1048576 --histogram=0 --use_plain_table=1 --open_files=-1 --mmap_read=1 --mmap_write=0 --memtablerep=prefix_hash --bloom_bits=10 --bloom_locality=1 --perf_level=0 --benchmarks=filluniquerandom,readseq,readrandom --use_existing_db=0 --threads=4
      
      Reviewers: haobo, dhruba, sdong, ankgup87, rsumbaly, swapnilghike, zzbennett
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D18267
      05979493
    • I
      Fix corruption test · 4cd9f58c
      Igor Canadi 提交于
      4cd9f58c
    • I
      Make CompactionInputErrorParanoid less flakey · 478990c8
      Igor Canadi 提交于
      Summary:
      I'm getting lots of e-mails with CompactionInputErrorParanoid failing. Most recent example early morning today was: http://ci-builds.fb.com/job/rocksdb_valgrind/562/consoleFull
      
      I'm putting a stop to these e-mails. I investigated why the test is flakey and it turns out it's because of non-determinsim of compaction scheduling. If there is a compaction after the last flush, CorruptFile will corrupt the compacted file instead of file at level 0 (as it assumes). That makes `Check(9, 9)` fail big time.
      
      I also saw some errors with table file getting outputed to >= 1 levels instead of 0. Also fixed that.
      
      Test Plan: Ran corruption_test 100 times without a failure. Previously it usually failed at 10th occurrence.
      
      Reviewers: dhruba, haobo, ljin
      
      Reviewed By: ljin
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D18285
      478990c8
    • I
      Install stack trace handlers in unit tests · fc3127e8
      Igor Canadi 提交于
      Summary: Sometimes, our tests fail because of normal `assert` call. It would be helpful to see stack trace in that case, too.
      
      Test Plan: Added `assert(false)` and verified it prints out stack trace
      
      Reviewers: haobo, dhruba, sdong, ljin, yhchiang
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D18291
      fc3127e8
    • I
      Run whitebox test before black box · a40970aa
      Igor Canadi 提交于
      a40970aa
  2. 24 4月, 2014 4 次提交
    • I
      Initialize verification_failed in db_stress · 472a80a3
      Igor Canadi 提交于
      472a80a3
    • I
      Improve stability of db_stress · 2413a06c
      Igor Canadi 提交于
      Summary:
      Currently, whenever DB Verification fails we bail out by calling `exit(1)`. This is kind of bad since it causes unclean shutdown and spew of error log messages like:
      
          05:03:27 pthread lock: Invalid argument
          05:03:27 pthread lock: Invalid argument
          05:03:27 pthread lock: Invalid argument
          05:03:27 pthread lock: Invalid argument
          05:03:27 pthread lock: Invalid argument
          05:03:27 pthread lock: Invalid argument
          05:03:27 pthread lock: Invalid argument
          05:03:27 pthread lock: Invalid argument
          05:03:27 pthread lock: Invalid argument
      
      This diff adds a new parameter that is set to true when verification fails. It can then use the parameter to bail out safely.
      
      Test Plan: Casued artificail failure. Verified that exit was clean.
      
      Reviewers: dhruba, haobo, ljin
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D18243
      2413a06c
    • Y
      [Java] Add Java bindings and Java tests for 30+ rocksdb::Options. · d8fe0060
      Yueh-Hsuan Chiang 提交于
      Summary:
      Add Java bindings and Java tests for 30+ rocksdb::Options.  Codes are
      machine-genearted based on include/rocksdb/options.h with manual-polishment.
      
      Test Plan:
      make rocksdbjava
      make jtest
      
      Reviewers: haobo, dhruba, sdong, ankgup87, rsumbaly, swapnilghike, zzbennett
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D18273
      d8fe0060
    • S
      Fix a bug in IterKey · 4de5b84e
      sdong 提交于
      Summary: IterKey set buffer_size_ to a wrong initial value, causing it to always allocate values from heap instead of stack if the key size is smaller. Fix it.
      
      Test Plan: make all check
      
      Reviewers: haobo, ljin
      
      Reviewed By: haobo
      
      CC: igor, dhruba, yhchiang, leveldb
      
      Differential Revision: https://reviews.facebook.net/D18279
      4de5b84e
  3. 23 4月, 2014 13 次提交
  4. 22 4月, 2014 15 次提交