1. 11 12月, 2015 4 次提交
  2. 10 12月, 2015 7 次提交
  3. 09 12月, 2015 16 次提交
  4. 08 12月, 2015 9 次提交
    • A
      Support marking snapshots for write-conflict checking · ec704aaf
      agiardullo 提交于
      Summary:
      D50475 enables using SST files for transaction write-conflict checking.  In order for this to work, we need to make sure not to compact out SingleDeletes when there is an earlier transaction snapshot(D50295).  If there is a long-held snapshot, this could reduce the benefit of the SingleDelete optimization.
      
      This diff allows Transactions to mark snapshots as being used for write-conflict checking.  Then, during compaction, we will be able to optimize SingleDeletes better in the future.
      
      This diff adds a flag to SnapshotImpl which is used by Transactions.  This diff also passes the earliest write-conflict snapshot's sequence number to CompactionIterator.  This diff does not actually change Compaction (after this diff is pushed, D50295 will be able to use this information).
      
      Test Plan: no behavior change, ran existing tests
      
      Reviewers: rven, kradhakrishnan, yhchiang, IslamAbdelRahman, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D51183
      ec704aaf
    • S
      Fix occasional failure of DBTest.DynamicCompactionOptions · 770dea93
      sdong 提交于
      Summary: DBTest.DynamicCompactionOptions ocasionally fails during valgrind run. We sent a sleeping task to block compaction thread pool but we don't wait it to run.
      
      Test Plan: Run the test multiple times in an environment which can cause failure.
      
      Reviewers: rven, kradhakrishnan, igor, IslamAbdelRahman, anthony, yhchiang
      
      Reviewed By: yhchiang
      
      Subscribers: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D51687
      770dea93
    • S
      Split histogram per OperationType in db_bench · ebc2d490
      SherlockNoMad 提交于
      ebc2d490
    • S
      Revert "Fix a race condition in persisting options" · f307036b
      sdong 提交于
      This reverts commit 2fa3ed51. It breaks RocksDB lite build
      f307036b
    • Y
      Fix a race condition in persisting options · 2fa3ed51
      Yueh-Hsuan Chiang 提交于
      Summary:
      This patch fix a race condition in persisting options which will cause a crash when:
      
      * Thread A obtain cf options and start to persist options based on that cf options.
      * Thread B kicks in and finish DropColumnFamily and delete cf_handle.
      * Thread A wakes up and tries to finish the persisting options and crashes.
      
      Test Plan: Add a test in column_family_test that can reproduce the crash
      
      Reviewers: anthony, IslamAbdelRahman, rven, kradhakrishnan, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D51609
      2fa3ed51
    • V
      Fix valgrind failures in 3 tests in db_compaction_test due to new skiplist changes · f276c3a8
      Venkatesh Radhakrishnan 提交于
      Summary:
      Several tests in db_compaction_test are failing with aborts in
      valgrind. These are LevelCompactionThirdPath, LevelCompactionPathUse and
      CompressLevelCompaction. We now use the SpecialSkipListFactory to make
      them more deterministic
      
      Test Plan: valgrind
      
      Reviewers: anthony, yhchiang, kradhakrishnan, IslamAbdelRahman, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D51663
      f276c3a8
    • S
      Fix undeterministic failure of ColumnFamilyTest.DifferentWriteBufferSizes · 291088ae
      sdong 提交于
      Summary: After the skip list optimization, ColumnFamilyTest.DifferentWriteBufferSizes can occasionally fail with flush triggering of column family 3. Insert more data to it to make sure flush will trigger.
      
      Test Plan: Run it multiple times with both of jemaloc on and off and see it always passes. (Without thd commit the run with jemalloc fails with chance of about one in two)
      
      Reviewers: rven, yhchiang, IslamAbdelRahman, anthony, kradhakrishnan, igor
      
      Reviewed By: igor
      
      Subscribers: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D51645
      291088ae
    • S
    • S
      EstimatedNumKeys Counter Inaccurate · 355fa943
      SherlockNoMad 提交于
      355fa943
  5. 07 12月, 2015 1 次提交
    • J
      Move posix threads into a library · b2863017
      Javier González 提交于
      Summary: This patch moves all posix thread logic to a separate library.
      The motivation is to allow another environments to easily reuse posix
      threads. HDFS wraps already posix threads; this split would simplify
      this code.
      
      Test Plan: No new functionality is added to posix Env or the threading
      library, thus the current tests should suffice.
      b2863017
  6. 05 12月, 2015 3 次提交
    • S
      Replace malloc with new for LRU Cache Handle · 3a98a7ae
      SherlockNoMad 提交于
      3a98a7ae
    • I
      Fix db_universal_compaction_test · a9ca9107
      Islam AbdelRahman 提交于
      Summary:
      db_universal_compaction_test is still failing because of
      UniversalCompactionNumLevels/DBTestUniversalCompaction.UniversalCompactionSecondPathRatio/0
      
      https://travis-ci.org/facebook/rocksdb/jobs/94949919
      
      Use same approach to fix other tests to fix this test
      
      Test Plan: Run ./db_universal_compaction_test on mac and make sure all the tests pass
      
      Reviewers: kradhakrishnan, yhchiang, rven, anthony, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D51591
      a9ca9107
    • K
      Build break fix. · d3bb572d
      krad 提交于
      Summary: Skip list now cannot estimate memory across allocators
      consistently and hence triggers flush at different time. This breaks certain
      unit tests.
      
      The fix is to adopt key count instead of size for flush.
      
      Test Plan: Ran test on dev box and mac (where it used to fail)
      
      Reviewers: sdong
      
      CC: leveldb@
      
      Task ID: #9273334
      
      Blame Rev:
      d3bb572d