1. 20 8月, 2016 3 次提交
    • I
      Add TablePropertiesCollector support in SstFileWriter · 6a17b07c
      Islam AbdelRahman 提交于
      Summary: Update SstFileWriter to use user TablePropertiesCollectors that are passed in Options
      
      Test Plan: unittests
      
      Reviewers: sdong
      
      Reviewed By: sdong
      
      Subscribers: jkedgar, andrewkr, hermanlee4, dhruba, yoshinorim
      
      Differential Revision: https://reviews.facebook.net/D62253
      6a17b07c
    • W
      TableBuilder / TableReader support for range deletion · 78837f5d
      Wanning Jiang 提交于
      Summary: 1. Range Deletion Tombstone structure 2. Modify Add() in table_builder to make it usable for adding range del tombstones 3. Expose NewTombstoneIterator() API in table_reader
      
      Test Plan: table_test.cc (now BlockBasedTableBuilder::Add() only accepts InternalKey. I make table_test only pass InternalKey to BlockBasedTableBuidler. Also test writing/reading range deletion tombstones in table_test )
      
      Reviewers: sdong, IslamAbdelRahman, lightmark, andrewkr
      
      Reviewed By: andrewkr
      
      Subscribers: andrewkr, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D61473
      78837f5d
    • Y
      Introduce ClockCache · 4cc37f59
      Yi Wu 提交于
      Summary:
      Clock-based cache implemenetation aim to have better concurreny than
      default LRU cache. See inline comments for implementation details.
      
      Test Plan:
      Update cache_test to run on both LRUCache and ClockCache. Adding some
      new tests to catch some of the bugs that I fixed while implementing the
      cache.
      
      Reviewers: kradhakrishnan, sdong
      
      Reviewed By: sdong
      
      Subscribers: andrewkr, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D61647
      4cc37f59
  2. 19 8月, 2016 1 次提交
    • Y
      Adding TBB as dependency. · ff17a2ab
      Yi Wu 提交于
      Summary: Splitting the makefile part of D55581.
      
      Test Plan:
        make all check -j32
        ROCKSDB_FBCODE_BUILD_WITH_481=1 make all check -j32
        ROCKSDB_NO_FBCODE=1 make all check -j32
      
        export TBB_BASE=/mnt/gvfs/third-party2/tbb/afa54b33cfcf93f1d90a3160cdb894d6d63d5dca/4.0_update2/gcc-4.9-glibc-2.20/e9936bf;
        ROCKSDB_NO_FBCODE=1 CFLAGS="-I $TBB_BASE/include" LDFLAGS="-L $TBB_BASE/lib -Wl,-rpath=$TBB_BASE/lib" make all check -j32
      
      Reviewers: IslamAbdelRahman, sdong
      
      Reviewed By: sdong
      
      Subscribers: kradhakrishnan, yhchiang, IslamAbdelRahman, andrewkr, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D56979
      ff17a2ab
  3. 18 8月, 2016 2 次提交
  4. 17 8月, 2016 2 次提交
    • D
      Small nits (#1280) · 3981345b
      Dmitri Smirnov 提交于
      * Create rate limiter using factory function in the test.
      
      * Convert function local statics in option helper to a C array
        that does not perform dynamic memory allocation. This is helpful
        when you try to memory isolate different DB instances.
      3981345b
    • Y
      Move LRUCache structs to lru_cache.h header · 2a2ebb6f
      Yi Wu 提交于
      Summary: ... so that I can include the header and create LRUCache specific tests for D61977
      
      Test Plan:
         make check
      
      Reviewers: lightmark, IslamAbdelRahman, sdong
      
      Reviewed By: sdong
      
      Subscribers: andrewkr, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D62145
      2a2ebb6f
  5. 16 8月, 2016 9 次提交
  6. 13 8月, 2016 2 次提交
    • P
      Added min/max/avg data block size output to sst_dump · deda159b
      Philipp Unterbrunner 提交于
      Summary: Added min/max/avg data block size output to sst_dump. Output was added to the end of BlockBasedTable::DumpDataBlocks, so it appears after the data block details, at the very end of the dump file.
      
      Test Plan:
      ```
      ./db_bench --benchmarks=fillrandom
      ./sst_dump --file=/tmp/rocksdbtest-xyz/dbbench/000007.sst --command=raw
      tail -n 6 /tmp/rocksdbtest-xyz/dbbench/000007_dump.txt
      ```
      ```
      Data Block Summary:
      --------------------------------------
        # data blocks: 11336
        min data block size: 903
        max data block size: 2268
        avg data block size: 2245.363356
      ```
      
      Reviewers: IslamAbdelRahman
      
      Reviewed By: IslamAbdelRahman
      
      Subscribers: andrewkr, dhruba
      
      Differential Revision: https://reviews.facebook.net/D61815
      deda159b
    • A
      add Name() to Cache · e408e98c
      Aaron Gao 提交于
      Summary: preparation for detecting Cache type. If SimCache, we then may trigger some command like "setSimCapacity()" with setOptions()
      
      Test Plan: make all check
      
      Reviewers: yiwu, sdong
      
      Reviewed By: sdong
      
      Subscribers: andrewkr, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D61953
      e408e98c
  7. 12 8月, 2016 10 次提交
  8. 11 8月, 2016 11 次提交
    • K
      Persistent Read Cache (8) Benchmark tooling · 87c91bd8
      krad 提交于
      Summary:
      Adding benchmark tool for persistent read cache.
      
      TODO: Add integration to db_bench
      
      Test Plan: Compile
      
      Subscribers: andrewkr, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D57711
      87c91bd8
    • A
      add sim_cache stats to Statistics · 2914de64
      Aaron Gao 提交于
      Summary:
      add SIM_BLOCK_CACHE_HIT and SIM_BLOCK_CACHE_MISS tickers.
      maybe can be combined with Histograms like DB_GET to evaluate the current setting of the size of block cache.
      
      Test Plan: make all check
      
      Reviewers: sdong, andrewkr, IslamAbdelRahman, yiwu
      
      Reviewed By: yiwu
      
      Subscribers: andrewkr, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D61803
      2914de64
    • S
      [Proof-Of-Concept] RocksDB Blob Storage with a blob log file. · 8b79422b
      sdong 提交于
      Summary:
      This is a proof of concept of a RocksDB blob log file. The actual value of the Put() is appended to a blob log using normal data block format, and the handle of the block is written as the value of the key in RocksDB.
      
      The prototype only supports Put() and Get(). It doesn't support DB restart, garbage collection, Write() call, iterator, snapshots, etc.
      
      Test Plan: Add unit tests.
      
      Reviewers: arahut
      
      Reviewed By: arahut
      
      Subscribers: kradhakrishnan, leveldb, andrewkr, dhruba
      
      Differential Revision: https://reviews.facebook.net/D61485
      8b79422b
    • S
      Fix test data race in two FaultInjectionTest tests · 4beffe00
      sdong 提交于
      Summary: Background sleeping tasks may conflict with test cleaning up. Wait for the sleeping tasks to finish before ending the test.
      
      Test Plan: Run these tests.
      
      Reviewers: andrewkr, yiwu
      
      Reviewed By: yiwu
      
      Subscribers: leveldb, andrewkr, dhruba
      
      Differential Revision: https://reviews.facebook.net/D61827
      4beffe00
    • W
      util/arena.cc: FreeBSD: More portable use of mmap(MAP_ANON) (#1254) · 821bcb0b
      Willem Jan Withagen 提交于
      From the Linux manual:
        MAP_ANONYMOUS
           The  mapping  is  not  backed  by any file; its contents
           are initialized to zero.  The fd and offset arguments are
           ignored; however, some implementations require fd to be -1
           if MAP_ANONYMOUS (or MAP_ANON) is specified, and portable
           applications  should  ensure  this.
      
      FreeBSD is such a case, it wil just return an error.
      821bcb0b
    • S
      Increase RocksDB version · 5370f44a
      sdong 提交于
      Summary: RocksDB 4.11 has been branched out. Now need to move to 4.12.
      
      Test Plan: N/A
      
      Reviewers: kradhakrishnan, andrewkr, IslamAbdelRahman
      
      Reviewed By: IslamAbdelRahman
      
      Subscribers: leveldb, andrewkr, dhruba
      
      Differential Revision: https://reviews.facebook.net/D61845
      5370f44a
    • S
      read_options.background_purge_on_iterator_cleanup to cover forward iterator... · 56dd0341
      sdong 提交于
      read_options.background_purge_on_iterator_cleanup to cover forward iterator and log file closing too.
      
      Summary: With read_options.background_purge_on_iterator_cleanup=true, File deletion and closing can still happen in forward iterator, or WAL file closing. Cover those cases too.
      
      Test Plan: I am adding unit tests.
      
      Reviewers: andrewkr, IslamAbdelRahman, yiwu
      
      Reviewed By: yiwu
      
      Subscribers: leveldb, andrewkr, dhruba
      
      Differential Revision: https://reviews.facebook.net/D61503
      56dd0341
    • I
      UniversalCompaction should ignore sorted runs being compacted (when compacting for file num) · ccecf3f4
      Islam AbdelRahman 提交于
      Summary:
      If we have total number of sorted runs greater than level0_file_num_compaction_trigger, Universal compaction will always issue a compaction
      even if the number of sorted runs that are not being compacted is less than level0_file_num_compaction_trigger.
      
      This diff changes this behaviour to relay on the `number of sorted runs not being compacted` instead of `total number of sorted runs`
      
      Test Plan: New unit test
      
      Reviewers: sdong
      
      Reviewed By: sdong
      
      Subscribers: andrewkr, dhruba
      
      Differential Revision: https://reviews.facebook.net/D61533
      ccecf3f4
    • A
      Remove non-gtest from parallelized tests · 1b0069ce
      Andrew Kryczka 提交于
      Summary:
      compact_on_deletion_collector_test does not support --gtest_list_tests
      since it isn't gtest, so the full program would run for the target
      gen_parallel_tests. This caused gen_parallel_tests to take 8+ minutes for tsan
      and prevented compact_on_deletion_collector_test from running during check_0
      since no t/run-* script could be generated.
      
      Test Plan:
      run make check, verify generating t/run-* scripts is fast and
      ./compact_on_deletion_collector_test is now run
      
      Reviewers: IslamAbdelRahman, wanning, lightmark, sdong
      
      Reviewed By: sdong
      
      Subscribers: andrewkr, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D61695
      1b0069ce
    • S
      Change HISTORY.md for release 4.11 · 638c49f2
      sdong 提交于
      Summary:
      Need to change HISTORY.md for 4.11.
      4.10 was not updated either. Update it together.
      
      Test Plan: Not needed.
      
      Reviewers: kradhakrishnan, andrewkr, IslamAbdelRahman
      
      Reviewed By: IslamAbdelRahman
      
      Subscribers: leveldb, andrewkr, dhruba
      
      Differential Revision: https://reviews.facebook.net/D61665
      638c49f2
    • J
      fix vs generator (#1269) · 6b8e9c68
      Jay 提交于
      6b8e9c68