1. 16 9月, 2015 12 次提交
  2. 15 9月, 2015 12 次提交
  3. 12 9月, 2015 10 次提交
    • A
      Transactions: Release Locks when rolling back to a savepoint · a3fc49bf
      agiardullo 提交于
      Summary: Transaction::RollbackToSavePoint() will now release any locks that were taken since the previous SavePoint.  To do this cleanly, I moved tracked_keys_ management into TransactionBase.
      
      Test Plan: New Transaction test.
      
      Reviewers: igor, rven, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, spetrunia, leveldb
      
      Differential Revision: https://reviews.facebook.net/D46761
      a3fc49bf
    • D
      Address code review comments both GH and internal · ddc8b449
      Dmitri Smirnov 提交于
       Fix compilation issues on GCC/CLANG
       Address Windows Release test build issues due to Sync
      ddc8b449
    • K
      Improvements to CI jobs · 9f3a66a9
      krad 提交于
      Summary: Fixed
      - Added timeouts for crash tests. They take around 9hrs.
      - Added oncall so we can get notifications for timeout etc.
      - Fixed a bug in the valgrind script
      - Cosmetic fix
      
      Test Plan: Manual run
      
      Reviewers: sdong igor
      
      CC: leveldb@
      
      Task ID: #6968635
      
      Blame Rev:
      9f3a66a9
    • K
      Minor fix to CI job · 7db1471c
      krad 提交于
      Summary: Fix the issue where compilation error will not result in log file not
      found error
      
      Test Plan: None
      
      Reviewers: sdong igor
      
      CC: leveldb@
      
      Task ID: #6968635
      
      Blame Rev:
      7db1471c
    • A
      Fixed arena_test failure due to malloc_usable_size() · c67d2068
      Andres Noetzli 提交于
      Summary:
      ArenaTest.MemoryAllocatedBytes on Travis failed:
      https://travis-ci.org/facebook/rocksdb/jobs/79887849 . This is probably due to
      malloc_usable_size() returning a value greater than the requested size. From
      the man page:
      
         The value returned by malloc_usable_size() may be greater than the requested
         size of the allocation because of alignment and minimum size constraints.
         Although the excess bytes can be overwritten by the application without ill
         effects, this is not good programming practice: the number of excess bytes
         in an allocation depends on the underlying implementation.
      
      Test Plan: make arena_test && ./arena_test
      
      Reviewers: rven, anthony, yhchiang, aekmekji, sdong, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D46743
      c67d2068
    • A
      Initialize variable to avoid warning · 34cedaff
      Andres Noetzli 提交于
      Summary:
      RocksDB debug version failed to build under gcc-4.8.1 on sandcastle with the following error:
      
      ```
      db/db_compaction_filter_test.cc:570:33: error: ‘snapshot’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
      ```
      
      Test Plan: make db_compaction_filter_test && ./db_compaction_filter_test
      
      Reviewers: rven, anthony, yhchiang, aekmekji, igor, sdong
      
      Reviewed By: igor, sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D46725
      34cedaff
    • M
      Add counters for seek/next/prev · aeb46126
      Manuel Ung 提交于
      Summary:
      There are currently no statistics on seeks, only on gets. This adds the following counters:
      
      rocksdb.number.db.seek
      rocksdb.number.db.next
      rocksdb.number.db.prev
      (number of calls)
      
      rocksdb.db.iterate.bytes.read
      (number of bytes read from key + value using seek/next/prev)
      
      rocksdb.number.keys.seek.found
      rocksdb.number.keys.next.found
      rocksdb.number.keys.prev.found
      (number of calls where seek/next/prev found a value)
      
      Test Plan:
      ./db_bench -statistics -benchmarks fillrandom,seekrandom -seek_nexts 5
      ./db_bench -statistics -benchmarks fillrandom,seekrandom -seek_nexts 5 -reverse_iterator
      
      Reviewers: yhchiang, rven, kradhakrishnan, IslamAbdelRahman, MarkCallaghan, sdong, igor
      
      Reviewed By: sdong
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D46605
      aeb46126
    • I
      Refactor NewTableReader to accept TableReaderOptions · 45e9e4f0
      Islam AbdelRahman 提交于
      Summary:
      Refactoring NewTableReader to accept TableReaderOptions
      This will make it easier to add new options in the future, for example in this diff https://reviews.facebook.net/D46071
      
      Test Plan: run existing tests
      
      Reviewers: igor, yhchiang, anthony, rven, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D46179
      45e9e4f0
    • A
      Fixed bug in compaction iterator · ddb950f8
      Andres Noetzli 提交于
      Summary:
      During the refactoring, the condition that makes sure that compaction
      filters are only applied to records newer than the latest snapshot
      got butchered. This patch fixes the condition and adds a test case.
      
      Test Plan: make db_compaction_filter_test && ./db_compaction_filter_test
      
      Reviewers: rven, anthony, yhchiang, sdong, aekmekji, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D46707
      ddb950f8
    • D
      Refactor to support file_reader_writer on Windows. · 30e82d5c
      Dmitri Smirnov 提交于
        Summary. A change https://reviews.facebook.net/differential/diff/224721/
        Has attempted to move common functionality out of platform dependent
        code to a new facility called file_reader_writer.
        This includes:
        - perf counters
        - Buffering
        - RateLimiting
      
        However, the change did not attempt to refactor Windows code.
        To mitigate, we introduce new quering interfaces such as UseOSBuffer(),
        GetRequiredBufferAlignment() and ReaderWriterForward()
        for pure forwarding where required.
        Introduce WritableFile got a new method Truncate(). This is to communicate
        to the file as to how much data it has on close.
         - When space is pre-allocated on Linux it is filled with zeros implicitly,
          no such thing exist on Windows so we must truncate file on close.
         - When operating in unbuffered mode the last page is filled with zeros but we still want to truncate.
      
         Previously, Close() would take care of it but now buffer management is shifted to the wrappers and the file has
         no idea about the file true size.
      
         This means that Close() on the wrapper level must always include
         Truncate() as well as wrapper __dtor should call Close() and
         against double Close().
         Move buffered/unbuffered write logic to the wrapper.
         Utilize Aligned buffer class.
         Adjust tests and implement Truncate() where necessary.
         Come up with reasonable defaults for new virtual interfaces.
         Forward calls for RandomAccessReadAhead class to avoid double
         buffering and locking (double locking in unbuffered mode on WIndows).
      30e82d5c
  4. 11 9月, 2015 6 次提交
    • I
      Run full test suite in Travis · af7cdbf6
      Igor Canadi 提交于
      Summary: With old travis infrastructure, we couldn't run the whole test suite without crashing. Now we transfered to the new architecture and are able to run full `make check` instead of just db_test.
      
      Test Plan:
      https://travis-ci.org/facebook/rocksdb/builds/79591564
      
      This test has failed, true, but it's actual problem with tests:
      * t8316104 -- Failed ColumnFamilyTest.ReadDroppedColumnFamily and also https://github.com/facebook/rocksdb/issues/673
      * Too many open files:
      
          db/db_universal_compaction_test.cc:514: Failure
          Put(1, Key(i % num_keys), Key(i))
          IO error: /tmp/rocksdbtest-501/db_universal_compaction_prallel_test/000331.sst: Too many open files
      
      Reviewers: sdong, anthony, kradhakrishnan, IslamAbdelRahman
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D46545
      af7cdbf6
    • A
      Removed __unused__ attribute · c25f6a85
      Andres Noetzli 提交于
      Summary:
      The current build is failing on some platforms due to an __unused__ attribute.
      This patch prevents the problem by using a pattern similar to MergeHelper
      (assert not on the variable but inside a condition that uses the variable). We
      should have better error handling in both cases in the future.
      
      Test Plan: make clean all check
      
      Reviewers: rven, anthony, yhchiang, sdong, igor, aekmekji
      
      Reviewed By: aekmekji
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D46623
      c25f6a85
    • A
      Fix DBCompactionTest failure with parallel L0-L1 compactions · 6db0a939
      Ari Ekmekji 提交于
      Summary:
      The test SuggestCompactRangeNoTwoLevel0Compactions in
      DBCompactionTest fails when there are parallel L0-L1 compactions
      taking place because the test makes sure that only one compaction
      involving L0 takes place at any given time (since before having
      parallel compactions this was impossible). I changed the test to only
      run with DBOptions.max_subcompactions=1 so as to not hit this issue
      which is not a correctness issue but just an inherent changing of
      assumptions after introducing parallel compactions.
      
      This failed after landing https://reviews.facebook.net/D43269#inline-321303
      so now this should fix it
      
      Test Plan: make all && make check
      
      Reviewers: yhchiang, igor, anthony, noetzli, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D46617
      6db0a939
    • A
      Refactored common code of Builder/CompactionJob out into a CompactionIterator · 8aa1f151
      Andres Noetzli 提交于
      Summary:
      Builder and CompactionJob share a lot of fairly complex code. This patch
      refactors this code into a separate class, the CompactionIterator. Because the
      shared code is fairly complex, this patch hopefully improves maintainability.
      While there are is a lot of potential for further improvements, the patch is
      intentionally pretty close to the original structure because the change is
      already complex enough.
      
      Test Plan: make clean all check && ./db_stress
      
      Reviewers: rven, anthony, yhchiang, sdong, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D46197
      8aa1f151
    • K
      CI job improvements · 41bce058
      krad 提交于
      Summary: Added more jobs and refactored code express the jobs more cleanly
      
      Test Plan: Manual test
      
      Reviewers: igor sdong
      
      CC: leveldb@
      
      Task ID: #6968635
      
      Blame Rev:
      41bce058
    • I
      Correct ASSERT_OK() in ReadDroppedColumnFamily · 95ffc5d2
      Igor Canadi 提交于
      Summary: ReadDroppedColumnFamily is consistently failing in Travis CI environment (can't repro locally). I suspect it might be failing with non-OK status. This diff will give us more info about the failure.
      
      Test Plan: none
      
      Reviewers: sdong, kradhakrishnan
      
      Reviewed By: kradhakrishnan
      
      Subscribers: kradhakrishnan, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D46611
      95ffc5d2