1. 20 7月, 2018 1 次提交
  2. 19 7月, 2018 4 次提交
  3. 18 7月, 2018 5 次提交
    • Y
      Release 5.15. (#4148) · 79f009f2
      Yanqin Jin 提交于
      Summary:
      Cut 5.15.fb
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4148
      
      Differential Revision: D8886802
      
      Pulled By: riversand963
      
      fbshipit-source-id: 6b6427ce97f5b323a7eebf92458fda8b24b0cece
      79f009f2
    • S
      DBSSTTest.DeleteSchedulerMultipleDBPaths data race (#4146) · 37e0fdc8
      Siying Dong 提交于
      Summary:
      Fix a minor data race in DBSSTTest.DeleteSchedulerMultipleDBPaths reported by TSAN
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4146
      
      Differential Revision: D8880945
      
      Pulled By: siying
      
      fbshipit-source-id: 25c632f685757735c59ad4ff26b2f346a443a446
      37e0fdc8
    • Y
      Fix write get stuck when pipelined write is enabled (#4143) · d538ebdf
      Yi Wu 提交于
      Summary:
      Fix the issue when pipelined write is enabled, writers can get stuck indefinitely and not able to finish the write. It can show with the following example: Assume there are 4 writers W1, W2, W3, W4 (W1 is the first, W4 is the last).
      
      T1: all writers pending in WAL writer queue:
      WAL writer queue: W1, W2, W3, W4
      memtable writer queue: empty
      
      T2. W1 finish WAL writer and move to memtable writer queue:
      WAL writer queue: W2, W3, W4,
      memtable writer queue: W1
      
      T3. W2 and W3 finish WAL write as a batch group. W2 enter ExitAsBatchGroupLeader and move the group to memtable writer queue, but before wake up next leader.
      WAL writer queue: W4
      memtable writer queue: W1, W2, W3
      
      T4. W1, W2, W3 finish memtable write as a batch group. Note that W2 still in the previous ExitAsBatchGroupLeader, although W1 have done memtable write for W2.
      WAL writer queue: W4
      memtable writer queue: empty
      
      T5. The thread corresponding to W3 create another writer W3' with the same address as W3.
      WAL writer queue: W4, W3'
      memtable writer queue: empty
      
      T6. W2 continue with ExitAsBatchGroupLeader. Because the address of W3' is the same as W3, the last writer in its group, it thinks there are no pending writers, so it reset newest_writer_ to null, emptying the queue. W4 and W3' are deleted from the queue and will never be wake up.
      
      The issue exists since pipelined write was introduced in 5.5.0.
      
      Closes #3704
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4143
      
      Differential Revision: D8871599
      
      Pulled By: yiwu-arbug
      
      fbshipit-source-id: 3502674e51066a954a0660257e24ac588f815e2a
      d538ebdf
    • S
      Remove managed iterator · ddc07b40
      Siying Dong 提交于
      Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/4124
      
      Differential Revision: D8829910
      
      Pulled By: siying
      
      fbshipit-source-id: f3e952ccf3a631071a5d77c48e327046f8abb560
      ddc07b40
    • S
      Pending output file number should be released after bulkload failure (#4145) · 995fcf75
      Siying Dong 提交于
      Summary:
      If bulkload fails for an input error, the pending output file number wasn't released. This bug can cause all future files with larger number than the current number won't be deleted, even they are compacted. This commit fixes the bug.
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4145
      
      Differential Revision: D8877900
      
      Pulled By: siying
      
      fbshipit-source-id: 080be92a23d43305ca1e13fe1c06eb4cd0b01466
      995fcf75
  4. 17 7月, 2018 5 次提交
  5. 14 7月, 2018 10 次提交
    • N
      Support range deletion tombstones in IngestExternalFile SSTs (#3778) · ef7815b8
      Nathan VanBenschoten 提交于
      Summary:
      Fixes #3391.
      
      This change adds a `DeleteRange` method to `SstFileWriter` and adds
      support for ingesting SSTs with range deletion tombstones. This is
      important for applications that need to atomically ingest SSTs while
      clearing out any existing keys in a given key range.
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/3778
      
      Differential Revision: D8821836
      
      Pulled By: anand1976
      
      fbshipit-source-id: ca7786c1947ff129afa703dab011d524c7883844
      ef7815b8
    • Z
      Exclude time waiting for rate limiter from rocksdb.sst.read.micros (#4102) · 91d7c03c
      Zhongyi Xie 提交于
      Summary:
      Our "rocksdb.sst.read.micros" stat includes time spent waiting for rate limiter. It probably only affects people rate limiting compaction reads, which is fairly rare.
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4102
      
      Differential Revision: D8848506
      
      Pulled By: miasantreble
      
      fbshipit-source-id: 01258ac5ae56e4eee372978cfc9143a6869f8bfc
      91d7c03c
    • P
      Relax VersionStorageInfo::GetOverlappingInputs check (#4050) · 90fc4069
      Peter Mattis 提交于
      Summary:
      Do not consider the range tombstone sentinel key as causing 2 adjacent
      sstables in a level to overlap. When a range tombstone's end key is the
      largest key in an sstable, the sstable's end key is so to a "sentinel"
      value that is the smallest key in the next sstable with a sequence
      number of kMaxSequenceNumber. This "sentinel" is guaranteed to not
      overlap in internal-key space with the next sstable. Unfortunately,
      GetOverlappingFiles uses user-keys to determine overlap and was thus
      considering 2 adjacent sstables in a level to overlap if they were
      separated by this sentinel key. This in turn would cause compactions to
      be larger than necessary.
      
      Note that this conflicts with
      https://github.com/facebook/rocksdb/pull/2769 and cases
      `DBRangeDelTest.CompactionTreatsSplitInputLevelDeletionAtomically` to
      fail.
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4050
      
      Differential Revision: D8844423
      
      Pulled By: ajkr
      
      fbshipit-source-id: df3f9f1db8f4cff2bff77376b98b83c2ae1d155b
      90fc4069
    • Y
      Reduce execution time of IngestFileWithGlobalSeqnoRandomized (#4131) · 21171615
      Yanqin Jin 提交于
      Summary:
      Make `ExternalSSTFileTest.IngestFileWithGlobalSeqnoRandomized` run faster.
      
      `make format`
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4131
      
      Differential Revision: D8839952
      
      Pulled By: riversand963
      
      fbshipit-source-id: 4a7e842fde1cde4dc902e928a1cf511322578521
      21171615
    • M
      Per-thread unique test db names (#4135) · 8581a93a
      Maysam Yabandeh 提交于
      Summary:
      The patch makes sure that two parallel test threads will operate on different db paths. This enables using open source tools such as gtest-parallel to run the tests of a file in parallel.
      Example: ``` ~/gtest-parallel/gtest-parallel ./table_test```
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4135
      
      Differential Revision: D8846653
      
      Pulled By: maysamyabandeh
      
      fbshipit-source-id: 799bad1abb260e3d346bcb680d2ae207a852ba84
      8581a93a
    • Z
      db_bench: enable setting cache_size when loading options file · 23b76252
      Zhongyi Xie 提交于
      Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/4118
      
      Differential Revision: D8845554
      
      Pulled By: miasantreble
      
      fbshipit-source-id: 13bd3c1259a7c30bad762a413fe3bb24eea650ba
      23b76252
    • F
      Converted db/merge_test.cc to use gtest (#4114) · 8527012b
      Fosco Marotto 提交于
      Summary:
      Picked up a task to convert this to use the gtest framework.  It can't be this simple, can it?
      
      It works, but should all the std::cout be removed?
      
      ```
      [$] ~/git/rocksdb [gft !]: ./merge_test
      [==========] Running 2 tests from 1 test case.
      [----------] Global test environment set-up.
      [----------] 2 tests from MergeTest
      [ RUN      ] MergeTest.MergeDbTest
      Test read-modify-write counters...
      a: 3
      1
      2
      a: 3
      b: 1225
      3
      Compaction started ...
      Compaction ended
      a: 3
      b: 1225
      Test merge-based counters...
      a: 3
      1
      2
      a: 3
      b: 1225
      3
      Test merge in memtable...
      a: 3
      1
      2
      a: 3
      b: 1225
      3
      Test Partial-Merge
      Test merge-operator not set after reopen
      [       OK ] MergeTest.MergeDbTest (93 ms)
      [ RUN      ] MergeTest.MergeDbTtlTest
      Opening database with TTL
      Test read-modify-write counters...
      a: 3
      1
      2
      a: 3
      b: 1225
      3
      Compaction started ...
      Compaction ended
      a: 3
      b: 1225
      Test merge-based counters...
      a: 3
      1
      2
      a: 3
      b: 1225
      3
      Test merge in memtable...
      Opening database with TTL
      a: 3
      1
      2
      a: 3
      b: 1225
      3
      Test Partial-Merge
      Opening database with TTL
      Opening database with TTL
      Opening database with TTL
      Opening database with TTL
      Test merge-operator not set after reopen
      [       OK ] MergeTest.MergeDbTtlTest (97 ms)
      [----------] 2 tests from MergeTest (190 ms total)
      
      [----------] Global test environment tear-down
      [==========] 2 tests from 1 test case ran. (190 ms total)
      [  PASSED  ] 2 tests.
      ```
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4114
      
      Differential Revision: D8822886
      
      Pulled By: gfosco
      
      fbshipit-source-id: c299d008e883c3bb911d2b357a2e9e4423f8e91a
      8527012b
    • M
      Exclude StackableDB from transaction stress tests (#4132) · 537a2339
      Maysam Yabandeh 提交于
      Summary:
      The transactions are currently tested with and without using StackableDB. This is mostly to check that the code path is consistent with stackable db as well. Slow, stress tests however do not benefit from being run again with StackableDB. The patch excludes StackableDB from such tests.
      On a single core it reduced the runtime of transaction_test from 199s to 135s.
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4132
      
      Differential Revision: D8841655
      
      Pulled By: maysamyabandeh
      
      fbshipit-source-id: 7b9aaba2673b542b195439dfb306cef26bd63b19
      537a2339
    • A
      Re-enable kUniversalSubcompactions option_config (#4125) · e3eba52a
      Anand Ananthabhotla 提交于
      Summary:
      1. Move kUniversalSubcompactions up before kEnd in db_test_util.h, so
      tests that cycle through all the option_configs include this
      2. Skip kUniversalSubcompactions wherever kUniversalCompaction and
      kUniversalCompactionMultilevel are skipped
      
      Related to #3935
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4125
      
      Differential Revision: D8828637
      
      Pulled By: anand1976
      
      fbshipit-source-id: 650dee15fd27d85281cf9bb4ca8ab460e04cac6f
      e3eba52a
    • T
      Add GCC 8 to Travis (#3433) · 7bee48bd
      Tamir Duberstein 提交于
      Summary:
      - Avoid `strdup` to use jemalloc on Windows
      - Use `size_t` for consistency
      - Add GCC 8 to Travis
      - Add CMAKE_BUILD_TYPE=Release to Travis
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/3433
      
      Differential Revision: D6837948
      
      Pulled By: sagar0
      
      fbshipit-source-id: b8543c3a4da9cd07ee9a33f9f4623188e233261f
      7bee48bd
  6. 13 7月, 2018 10 次提交
    • Z
      Support compaction filter in db_bench (#4106) · de98fd88
      Zhongyi Xie 提交于
      Summary:
      Right now there is no support for enabling compaction filter in db_bench, we should add support for that to facilitate testing of compaction filter.
      This PR adds a compaction filter called KeepFilter and make `Filter` always returns false, essentially a noop compaction filter. This will allow us to test compaction filter code path without having to support arbitrary compaction filters
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4106
      
      Differential Revision: D8828517
      
      Pulled By: miasantreble
      
      fbshipit-source-id: 9ad76d04103eaa9d00da98334b4a39e542d26c41
      de98fd88
    • A
      Fix unsigned int flag in db_bench (#4129) · 97fe23fc
      Andrew Kryczka 提交于
      Summary:
      `DEFINE_uint32` was unavailable on some platforms, e.g., https://travis-ci.org/facebook/rocksdb/jobs/403352902. Use `DEFINE_uint64` instead which should work as it's used many times elsewhere in this file.
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4129
      
      Differential Revision: D8830311
      
      Pulled By: ajkr
      
      fbshipit-source-id: b4fc90ba3f50e649c070ce8069c68e530d731f05
      97fe23fc
    • Y
      Disable EnvPosixTest.RunImmediately, add EnvPosixTest.RunEventually. (#4126) · 520bbb17
      Yanqin Jin 提交于
      Summary:
      The original `EnvPosixTest.RunImmediately` assumes that after scheduling
      a background thread, the thread is guaranteed to complete after 0.1 second.
      I do not know about any non-real-time OS/runtime providing this guarantee. Nor
      does C++11 standard say anything about this in the documentation of `std::thread`.
      In fact, we have observed this test failure multiple times on appveyor, and we
      haven't been able to reproduce the failure deterministically. Therefore,
      I disable this test for now until we know for sure how it used to fail.
      
      Instead, I add another test `EnvPosixTest.RunEventually` that checks that
      a thread will be scheduled eventually.
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4126
      
      Differential Revision: D8827086
      
      Pulled By: riversand963
      
      fbshipit-source-id: abc5cb655f90d50b791493da5eeb3716885dfe93
      520bbb17
    • Y
      Reduce execution time of a test. (#4127) · 90ebf1a2
      Yanqin Jin 提交于
      Summary:
      Reduce the number of key ranges in `ExternalSSTFileTest.OverlappingRanges` so
      that the test completes in shorter time to avoid timeouts.
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4127
      
      Differential Revision: D8827851
      
      Pulled By: riversand963
      
      fbshipit-source-id: a16387b0cc92a7c872b1c50f0cfbadc463afc9db
      90ebf1a2
    • M
      Refactor BlockIter (#4121) · d4ad32d7
      Maysam Yabandeh 提交于
      Summary:
      BlockIter is getting crowded including details that specific only to either index or data blocks. The patch moves down such details to DataBlockIter and IndexBlockIter, both inheriting from BlockIter.
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4121
      
      Differential Revision: D8816832
      
      Pulled By: maysamyabandeh
      
      fbshipit-source-id: d492e74155c11d8a0c1c85cd7ee33d24c7456197
      d4ad32d7
    • A
      db_bench periodically dump stats to info log (#4109) · 63904434
      Andrew Kryczka 提交于
      Summary:
      give control of how often stats are printed, including jemalloc stats if enabled. Previously the default was 10 minutes so we'd only see updated stats for very long benchmark runs.
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4109
      
      Differential Revision: D8796444
      
      Pulled By: ajkr
      
      fbshipit-source-id: fd7902fe3f105fae89322c4ab63316bba4a2b15e
      63904434
    • Y
      Reduce #iterations to shorten execution time. (#4123) · dbeaa0d3
      Yanqin Jin 提交于
      Summary:
      Reduce #iterations from 5000 to 1000 so that
      `ExternalSSTFileTest.CompactDuringAddFileRandom` can finish faster.
      On the one hand, 5000 iterations does not seem to improve the quality of unit
      test in comparison with 1000. On the other hand, long running tests should belong to stress tests.
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4123
      
      Differential Revision: D8822514
      
      Pulled By: riversand963
      
      fbshipit-source-id: 0f439b8d5ccd9a4aed84638f8bac16382de17245
      dbeaa0d3
    • N
      Range deletion performance improvements + cleanup (#4014) · 5f3088d5
      Nikhil Benesch 提交于
      Summary:
      This fixes the same performance issue that #3992 fixes but with much more invasive cleanup.
      
      I'm more excited about this PR because it paves the way for fixing another problem we uncovered at Cockroach where range deletion tombstones can cause massive compactions. For example, suppose L4 contains deletions from [a, c) and [x, z) and no other keys, and L5 is entirely empty. L6, however, is full of data. When compacting L4 -> L5, we'll end up with one file that spans, massively, from [a, z). When we go to compact L5 -> L6, we'll have to rewrite all of L6! If, instead of range deletions in L4, we had keys a, b, x, y, and z, RocksDB would have been smart enough to create two files in L5: one for a and b and another for x, y, and z.
      
      With the changes in this PR, it will be possible to adjust the compaction logic to split tombstones/start new output files when they would span too many files in the grandparent level.
      
      ajkr please take a look when you have a minute!
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4014
      
      Differential Revision: D8773253
      
      Pulled By: ajkr
      
      fbshipit-source-id: ec62fa85f648fdebe1380b83ed997f9baec35677
      5f3088d5
    • F
      Update docs/Gemfile.lock for nokogiri cve (#4116) · 121e3215
      Fosco Marotto 提交于
      Summary:
      Per GitHub warning
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4116
      
      Differential Revision: D8812291
      
      Pulled By: gfosco
      
      fbshipit-source-id: 3c55adc4ac737e4be077ddf29322c8961018d67c
      121e3215
    • S
      Remove two CI tests (#4110) · a61ff876
      Siying Dong 提交于
      Summary:
      Two CI tests never pass because of the environment problem. Delete them.
      Pull Request resolved: https://github.com/facebook/rocksdb/pull/4110
      
      Differential Revision: D8805713
      
      Pulled By: siying
      
      fbshipit-source-id: 6eb4813dc2094ee2045ec8ede7fe8967d546d6e8
      a61ff876
  7. 12 7月, 2018 5 次提交