1. 04 3月, 2017 3 次提交
  2. 03 3月, 2017 6 次提交
  3. 01 3月, 2017 4 次提交
  4. 28 2月, 2017 7 次提交
    • I
      Move advanced column family options to advanced_options.h · 08864df2
      Islam AbdelRahman 提交于
      Summary:
      For the sake of making our options simpler, we should keep options.h as simple as possible and move more advanced/less common options to advaned_options.h
      
      I started with ColumnFamilyOptions and also did some re-ordering
      
      I have moved all ColumnFamilyOptions to advanced_options.h and only left these options in options.h
      
      ```
      const Comparator* comparator = BytewiseComparator();
      std::shared_ptr<MergeOperator> merge_operator = nullptr;
      const CompactionFilter* compaction_filter = nullptr;
      std::shared_ptr<CompactionFilterFactory> compaction_filter_factory = nullptr;
      size_t write_buffer_size = 64 << 20;
      CompressionType compression;
      int level0_file_num_compaction_trigger = 4;
      bool disable_auto_compactions = false;
      ```
      Please feel free to comment on specific options if you think they should be advanced or should not be
      Closes https://github.com/facebook/rocksdb/pull/1847
      
      Differential Revision: D4519996
      
      Pulled By: IslamAbdelRahman
      
      fbshipit-source-id: abebd9a
      08864df2
    • P
      Get unique_ptr to use delete[] for char[] in DumpMallocStats · 2ca2059f
      Peter (Stig) Edwards 提交于
      Summary:
      Avoid mismatched free() / delete / delete [] in DumpMallocStats
      Closes https://github.com/facebook/rocksdb/pull/1927
      
      Differential Revision: D4622045
      
      Pulled By: siying
      
      fbshipit-source-id: 1131b30
      2ca2059f
    • T
      Add missing include for `abort()` · 253799c0
      Tamir Duberstein 提交于
      Summary:
      Fixes #1233 (again).
      Closes https://github.com/facebook/rocksdb/pull/1931
      
      Differential Revision: D4625289
      
      Pulled By: ajkr
      
      fbshipit-source-id: 70e774e
      253799c0
    • A
      Fixed various memory leaks and Java 8 JNI Compatibility · c6d464a9
      Adam Retter 提交于
      Summary:
      I have manually audited the entire RocksJava code base.
      
      Sorry for the large pull-request, I have broken it down into many small atomic commits though.
      
      My initial intention was to fix the warnings that appear when running RocksJava on Java 8 with `-Xcheck:jni`, for example when running `make jtest` you would see many errors similar to:
      
      ```
      WARNING in native method: JNI call made without checking exceptions when required to from CallObjectMethod
      WARNING in native method: JNI call made without checking exceptions when required to from CallVoidMethod
      WARNING in native method: JNI call made without checking exceptions when required to from CallStaticVoidMethod
      ...
      ```
      
      A few of those warnings still remain, however they seem to come directly from the JVM and are not directly related to RocksJava; I am in contact with the OpenJDK hostpot-dev mailing list about these - http://mail.openjdk.java.net/pipermail/hotspot-dev/2017-February/025981.html.
      
      As a result of fixing these, I realised we were not r
      Closes https://github.com/facebook/rocksdb/pull/1890
      
      Differential Revision: D4591758
      
      Pulled By: siying
      
      fbshipit-source-id: 7f7fdf4
      c6d464a9
    • I
      Fix unaligned reads in read cache · be3e5568
      Islam AbdelRahman 提交于
      Summary:
      - Fix unaligned reads in read cache by using RandomAccessFileReader
      - Allow read cache flags in db_bench
      Closes https://github.com/facebook/rocksdb/pull/1916
      
      Differential Revision: D4610885
      
      Pulled By: IslamAbdelRahman
      
      fbshipit-source-id: 2aa1dc8
      be3e5568
    • S
      Separate small subset tests in DBTest · 8ad0fcdf
      Siying Dong 提交于
      Summary:
      Separate a smal subset of tests in DBTest to DBBasicTest. Tests in DBTest don't have to run in CI tests on platforms like OSX, as long as they are covered by Linux.
      Closes https://github.com/facebook/rocksdb/pull/1924
      
      Differential Revision: D4616702
      
      Pulled By: siying
      
      fbshipit-source-id: 13e6549
      8ad0fcdf
    • S
      Run fewer tests in OSX · 6c951c43
      Siying Dong 提交于
      Summary:
      Travis is short of OSX resource. Try to move platform independent test suites out of OSX
      Closes https://github.com/facebook/rocksdb/pull/1922
      
      Differential Revision: D4616070
      
      Pulled By: siying
      
      fbshipit-source-id: 786342c
      6c951c43
  5. 24 2月, 2017 10 次提交
  6. 23 2月, 2017 5 次提交
  7. 22 2月, 2017 4 次提交
    • D
      Page size isn't always 4k on linux · f0879e4c
      Daniel Black 提交于
      Summary:
      Some places autodetected. These are the two places that didn't.
      
      closes #1498
      
      Still unsure if the following instances of 4 * 1024 need fixing in:
      util/io_posix.h
      include/rocksdb/table.h (appears to be blocksize and different)
      utilities/persistent_cache/block_cache_tier.cc
      utilities/persistent_cache/persistent_cache_test.h
      include/rocksdb/env.h
      util/env_posix.cc
      db/column_family.cc
      Closes https://github.com/facebook/rocksdb/pull/1499
      
      Differential Revision: D4593640
      
      Pulled By: yiwu-arbug
      
      fbshipit-source-id: efc48de
      f0879e4c
    • M
      Fix interference between max_total_wal_size and db_write_buffer_size checks · 18eeb7b9
      Mike Kolupaev 提交于
      Summary:
      This is a trivial fix for OOMs we've seen a few days ago in logdevice.
      
      RocksDB get into the following state:
      (1) Write throughput is too high for flushes to keep up. Compactions are out of the picture - automatic compactions are disabled, and for manual compactions we don't care that much if they fall behind. We write to many CFs, with only a few L0 sst files in each, so compactions are not needed most of the time.
      (2) total_log_size_ is consistently greater than GetMaxTotalWalSize(). It doesn't get smaller since flushes are falling ever further behind.
      (3) Total size of memtables is way above db_write_buffer_size and keeps growing. But the write_buffer_manager_->ShouldFlush() is not checked because (2) prevents it (for no good reason, afaict; this is what this commit fixes).
      (4) Every call to WriteImpl() hits the MaybeFlushColumnFamilies() path. This keeps flushing the memtables one by one in order of increasing log file number.
      (5) No write stalling trigger is hit. We rely on max_write_buffer_number
      Closes https://github.com/facebook/rocksdb/pull/1893
      
      Differential Revision: D4593590
      
      Pulled By: yiwu-arbug
      
      fbshipit-source-id: af79c5f
      18eeb7b9
    • I
      Temporarly return deprecated functions to fix MongoRocks build · 1560b2f5
      Islam AbdelRahman 提交于
      Summary:
      MongoRocks is still using some deprecated functions, return them temporarily
      Closes https://github.com/facebook/rocksdb/pull/1892
      
      Differential Revision: D4592451
      
      Pulled By: IslamAbdelRahman
      
      fbshipit-source-id: 5e6be3e
      1560b2f5
    • A
      level compaction expansion · 2a0f3d0d
      Aaron Gao 提交于
      Summary:
      reimplement the compaction expansion on lower level.
      
      Considering such a case:
      input level file: 1[B E] 2[F G] 3[H I] 4 [J M]
      output level file: 5[A C] 6[D K] 7[L O]
      
      If we initially pick file 2, now we will compact file 2 and 6. But we can safely compact 2, 3 and 6 without expanding the output level.
      
      The previous code is messy and wrong.
      
      In this diff, I first determine the input range [a, b], and output range [c, d],
      then we get the range [e,f] = [min(a, c), max(b, d] and put all eligible clean-cut files within [e, f] into this compaction.
      
      **Note: clean-cut means the files don't have the same user key on the boundaries of some files that are not chosen in this compaction**.
      Closes https://github.com/facebook/rocksdb/pull/1760
      
      Differential Revision: D4395564
      
      Pulled By: lightmark
      
      fbshipit-source-id: 2dc2c5c
      2a0f3d0d
  8. 19 2月, 2017 1 次提交