1. 27 2月, 2014 6 次提交
    • I
      [CF] DifferentMergeOperators and DifferentCompactionStyles tests · 343c32be
      Igor Canadi 提交于
      Summary:
      Two new column family tests:
      * DifferentMergeOperators -- three column families, one without merge operator, one with add operator and one with append operator. verify that operations work as expected.
      * DifferentCompactionStyles -- three column families, two with level compactions and one with universal compaction. trigger the compactions and verify they work as expected.
      
      Test Plan: nope
      
      Reviewers: dhruba, haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D16377
      343c32be
    • I
      [CF] Make LogDeletionTest less flakey · 3c815464
      Igor Canadi 提交于
      Summary: Retry GetSortedWalFiles() and also wait 20ms before counting number of log files. WaitForFlush() doesn't necessarily wait for logs to be deleted, since logs are deleted outside of the mutex.
      
      Test Plan: column_family_test
      
      Reviewers: dhruba, haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D16371
      3c815464
    • I
      [CF] More tests · 6e7cae77
      Igor Canadi 提交于
      Summary: New unit tests for column families
      
      Test Plan: this is a test
      
      Reviewers: dhruba, haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D16359
      6e7cae77
    • I
      [CF] Fix lint errors in CF code · 9bce2b2a
      Igor Canadi 提交于
      Summary: Big CF diff uncovered some lint errors. This diff fixes some of them. Not much to see here
      
      Test Plan: make check
      
      Reviewers: dhruba, haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D16347
      9bce2b2a
    • I
      [CF] Handle failure in WriteBatch::Handler · 8b7ab995
      Igor Canadi 提交于
      Summary:
      * Add ColumnFamilyHandle::GetID() function. Client needs to know column family's ID to be able to construct WriteBatch
      * Handle WriteBatch::Handler failure gracefully. Since WriteBatch is not a very smart function (it takes raw CF id), client can add data to WriteBatch for column family that doesn't exist. In that case, we need to gracefully return failure status from DB::Write(). To do that, I added a return Status to WriteBatch functions PutCF, DeleteCF and MergeCF.
      
      Test Plan: Added test to column_family_test
      
      Reviewers: dhruba, haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D16323
      8b7ab995
    • I
      Merge branch 'master' into columnfamilies · 944ff673
      Igor Canadi 提交于
      944ff673
  2. 26 2月, 2014 10 次提交
  3. 25 2月, 2014 6 次提交
  4. 24 2月, 2014 2 次提交
  5. 21 2月, 2014 2 次提交
  6. 20 2月, 2014 4 次提交
  7. 19 2月, 2014 2 次提交
  8. 15 2月, 2014 6 次提交
    • K
      Fix the lint issues in dev box · 78ce24a7
      Kai Liu 提交于
      Summary:
      Owing to the difference between platforms (my macbook and dev server), arc lint throws fatal error in dev box.
      To fix the problem (quickly), I removed all incompatible function calls.
      
      Test Plan: ran `arc lint` in dev box and passed.
      
      Reviewers: igor, yhchiang
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D16173
      78ce24a7
    • I
      some improvements to CompressedCache test · 6aef6612
      Igor Canadi 提交于
      6aef6612
    • I
      Fix table properties · 422bb09c
      Igor Canadi 提交于
      Summary: Adapt table properties to column family world
      
      Test Plan: make check
      
      Reviewers: kailiu
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D16161
      422bb09c
    • I
      Merge branch 'master' into columnfamilies · 76c04818
      Igor Canadi 提交于
      Conflicts:
      	db/db_impl.cc
      	db/db_test.cc
      	include/rocksdb/db.h
      76c04818
    • I
      fix u/s comparison #83 · be7e273d
      Igor Canadi 提交于
      be7e273d
    • I
      [CF] DB test to run on non-default column family · c67d48c8
      Igor Canadi 提交于
      Summary:
      This is a huge diff and it was hectic, but the idea is actually quite simple. Every operation (Put, Get, etc.) done on default column family in DBTest is now forwarded to non-default ("pikachu"). The good news is that we had zero test failures! Column families look stable so far.
      
      One interesting test that I adapted for column families is MultiThreadedTest. I replaced every Put() with a WriteBatch writing to all column families concurrently. Every Put in the write batch contains unique_id. Instead of Get() I do a multiget across all column families with the same key. If atomicity holds, I expect to see the same unique_id in all column families.
      
      Test Plan: This is a test!
      
      Reviewers: dhruba, haobo, kailiu, sdong
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D16149
      c67d48c8
  9. 14 2月, 2014 2 次提交
    • K
      Improve/fix bugs for the cpp linter · 46812f68
      kailiu 提交于
      Summary:
      Previous our new `arc lint` has two annoying bugs:
      
      * Keeping sending false alarm that we'd put c++ system files first -- even though we've already done that.
        - this problem is caused by our linter, which doesn't give the underlying cpplint.py right file path (it gives "-" as file name), making cpplint.py work incorrectly.
      * Only works in rocksdb's root dir; Otherwise it'll throw exception saying "cannot find cpplint.py".
      
      I copied open source ArcanistCpplintLinter and modifiy it for our use.
      
      Test Plan: Ran arc lint and made sure the above-mentioned problem won't occur.
      
      Reviewers: haobo, sdong, igor, ljin, yhchiang, dhruba
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D16137
      46812f68
    • K
      Expose the table properties to application · 63690625
      kailiu 提交于
      Summary: Provide a public API for users to access the table properties for each SSTable.
      
      Test Plan: Added a unit tests to test the function correctness under differnet conditions.
      
      Reviewers: haobo, dhruba, sdong
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D16083
      63690625