1. 26 1月, 2016 5 次提交
  2. 23 1月, 2016 4 次提交
    • S
      Add tests to make sure new DB or ColumnFamily options are settable through string · f1ed1701
      sdong 提交于
      Summary: Add a test to fail if someone adds a DB options.
      
      Test Plan: Run the test, run the test with valgrind. Add an option to DB option in the middle or in the end and make sure it fails.
      
      Reviewers: yhchiang, anthony, IslamAbdelRahman, kradhakrishnan, rven, andrewkr
      
      Reviewed By: andrewkr
      
      Subscribers: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D53097
      f1ed1701
    • K
      Improvements to pre-commit · f57596b0
      krad 提交于
      Summary:
      - UI is enhanced to lists the tests, status and the results
      - We are using the same pre-commit tool as the make equivalent
      - No more emails to user on failure
      - Dropped valgrind from the list since it can be a time hogger (and can hurt
        scheduling for others)
      - Patching bug fix
      - Made the jobs run in parallel in sandcastle
      
      Test Plan: Manual test
      
      Reviewers: sdong, rven, igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D53217
      
      Making parallel requests to sandcastle
      
      Test Plan: Run manual tests
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D53259
      f57596b0
    • I
      Update fbcode_config.sh to use latest versions automatically · 538eec06
      Islam AbdelRahman 提交于
      Summary:
      Update fbcode_config.sh so that It try to use the latest version for dependencies that we are using, after updating the code these libraries where updated
      
      ```
      Snappy: 1.0.3 => 1.1.3
      GFLAGS: 1.6 => 2.1.1
      JEMALLOC: 3.6.0 => 4.0.3
      ```
      
      I have also updated clang from 3.7 to 3.7.1
      
      ```
      Clang 3.7 => 3.7.1
      ```
      
      Another change is that we use the same tp2 directory as fbcode, so we dont need to keep changing commit hash every time we need to change a version of a compiler or a library
      
      Test Plan:
      make check -j64
      USE_CLANG=1 make check -j64
      
      DISABLE_JEMALLOC=1 OPT=-g make all valgrind_check -j32 (make sure it's running)
      
      Reviewers: yhchiang, anthony, rven, kradhakrishnan, andrewkr, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D53037
      538eec06
    • A
      improve test for manifest write failure · 8019aa9b
      agiardullo 提交于
      Summary: Improve testing per discussion in D52989
      
      Test Plan: ran test
      
      Reviewers: sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D53211
      8019aa9b
  3. 22 1月, 2016 6 次提交
    • A
      Revert D7809 · bcd4ccbc
      agiardullo 提交于
      Summary: Revert the functionaility of D7809 (but I'm keeping the logging and test code).  We decided it was dangerous to ignore sync failures based on attempting to read the data written.  The read does not tell us whether the data was synced.
      
      Test Plan: There was no test for the particular functionaility that was reverted.  Keeping the test code from D7809 that tests whether we set the DB to be readonly when paranoid checks are enabled.
      
      Reviewers: rven, yhchiang, kradhakrishnan, IslamAbdelRahman, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D52989
      bcd4ccbc
    • K
      Mechanism to run CI jobs on local branch via commit_prereq · b0a15e7f
      krad 提交于
      Summary: This patch provides a mechanism to run pre commit tests on the local
      branch before committing. This can help prevent frequent build breaks.
      
      The tests can be run in parallel by specifying the J=<..> environment
      variable.
      
      Test Plan: Run manually
      
      Reviewers: sdong rven tec
      
      CC: leveldb@
      
      Task ID: #9689218
      
      Blame Rev:
      b0a15e7f
    • A
      Cleanup property-related variable names · bb288873
      Andrew Kryczka 提交于
      Summary:
      I noticed these names were quite confusing while updating GetProperty
      documentation.
      
      Test Plan: running "make commit-prereq -j32"
      
      Reviewers: yhchiang, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D53073
      bb288873
    • A
      Add named constants for remaining properties · 29289333
      Andrew Kryczka 提交于
      Summary:
      There were just these two properties that didn't have any named
      constant.
      
      Test Plan:
      build and below test
      
        $ ./db_properties_test --gtest_filter=DBPropertiesTest.NumImmutableMemTable
      
      Reviewers: yhchiang, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D53103
      29289333
    • S
      Disable OptionsParserTest.BlockBasedTableOptionsAllFieldsSettable under CLANG · 2c2b7221
      sdong 提交于
      Summary: OptionsParserTest.BlockBasedTableOptionsAllFieldsSettable is failiong under CLANG. Disable the test to unblock the build.
      
      Test Plan: Run it both of CLANG and GCC
      
      Reviewers: kradhakrishnan, rven, andrewkr, anthony, yhchiang, IslamAbdelRahman
      
      Reviewed By: IslamAbdelRahman
      
      Subscribers: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D53157
      2c2b7221
    • K
      Added sandcastle pre-commit · a300d992
      krad 提交于
      Test Plan:
      Lately we have been breaking our builds too often. This changes adds
      the capability to schedule tests in sandcastle for every diff created. This will
      help us increase the pre-commit testing bar.
      
      This patch will dispatch signals to sandcastle to start running tests on the
      diff. The test failures are reported to the user via email.
      
      The user can also manually check the progress of test in sandcastle via the URL
      provided.
      
      Reviewers: sdong, rven
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D53001
      a300d992
  4. 21 1月, 2016 2 次提交
    • S
      Add test that verifies all options in BlockBasedTableOptions is settable... · 202be23e
      sdong 提交于
      Add test that verifies all options in BlockBasedTableOptions is settable through GetBlockBasedTableOptionsFromString()
      
      Summary: Add a test OptionsParserTest.BlockBasedTableOptionsAdded, which will fail if a new option is added to BlockBasedTableOptions but is not settable through GetBlockBasedTableOptionsFromString().
      
      Test Plan: Run the test. Also manually remove and add options and make sure it fails.
      
      Reviewers: anthony, IslamAbdelRahman, kradhakrishnan, rven, yhchiang, andrewkr
      
      Reviewed By: andrewkr
      
      Subscribers: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D52953
      202be23e
    • A
      Split db_test.cc (part 1: properties) · eceb5cb1
      Andrew Kryczka 提交于
      Summary:
      Moved all the tests that verify property correctness into a separate
      file. The goal is to reduce compile time and complexity of db_test. I didn't
      add parallelism for db_properties_test, even though these tests were
      parallelized in db_test, since the file is small enough that it won't matter.
      
      Some of these moves may be controversial since it's hard to say whether the
      test is "verifying property correctness," or "using properties to verify
      rocksdb's correctness." I'm interested in any opinions.
      
      Test Plan: ran db_properties_test, also waiting on "make commit-prereq -j32"
      
      Reviewers: yhchiang, IslamAbdelRahman, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D52995
      eceb5cb1
  5. 20 1月, 2016 8 次提交
  6. 19 1月, 2016 5 次提交
    • B
      Simple changes to support builds for ppc64[le] consistent with X86 · f423f05d
      bcbrock 提交于
      These simple changes are required to allow builds on ppc64[le] systems
      consistent with X86. The Makefile now recognizes both ppc64 and ppc64le, and
      in the absence of PORTABLE=1, the code will be built analogously to the X86
      -march=native.
      
      Note that although GCC supports -mcpu=native -mtune=native on POWER, it
      doesn't work correctly on all systems. This is why we need to get the actual
      machine model from the AUX vector.
      f423f05d
    • D
      Make alloca.h optional · 3f12e16f
      David Bernard 提交于
      3f12e16f
    • D
      Change notification email for travis · eaa56375
      David Bernard 提交于
      eaa56375
    • D
      Changes for build on solaris · d78c6b28
      David Bernard 提交于
      Makefile adjust paths for solaris build
      Makefile enable _GLIBCXX_USE_C99 so that std::to_string is available
      db_compaction_test.cc Initialise a variable to avoid a compilation error
      db_impl.cc Include <alloca.h>
      db_test.cc Include <alloca.h>
      Environment.java recognise solaris envrionment
      options_bulder.cc Make log unambiguous
      geodb_impl.cc Make log and floor unambiguous
      d78c6b28
    • S
      Add Rakuten Marketing to USERS.md · 2e9fae3f
      Selva Sarangan 提交于
      2e9fae3f
  7. 16 1月, 2016 1 次提交
  8. 15 1月, 2016 3 次提交
    • G
      Guard falloc.h inclusion to avoid build breaks · aec10f73
      Gunnar Kudrjavets 提交于
      Summary: Depending on the order of include paths and versions of various headers we may end up in a situation where we'll encounter a build break caused by redefinition of constants. gcc-4.9-glibc-2.20 header update to include/bits/fcntl-linux.h introduced the definitions of FALLOC_FL_* constants. However, linux/falloc.h from kernel-headers also has FALLOC_FL_* constants defined. Therefore during the compilation we'll get "previously defined" errors.
      
      Test Plan:
      Both in the environment where the build break manifests (to make sure that the change fixed the problem) and in the environment where everything builds fine (to make sure that there are no regressions):
      
      make clean
      make -j 32
      
      Reviewers: sdong, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D52821
      aec10f73
    • A
      Update HISTORY.mc for 4.4.0 · f7ebc2f3
      agiardullo 提交于
      Summary: Prepare to cut release
      
      Test Plan: no code change.
      
      Reviewers: yhchiang
      
      Reviewed By: yhchiang
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D52827
      f7ebc2f3
    • S
      Merge pull request #947 from yuslepukhin/align_and_yield · addd9545
      Siying Dong 提交于
      Align statistics
      addd9545
  9. 14 1月, 2016 2 次提交
    • D
      Align statistics · ac50fd3a
      Dmitri Smirnov 提交于
        Use Yield macro to make it a little more portable between platforms.
      ac50fd3a
    • S
      tools/sst_dump_tool_imp.h not to depend on "util/testutil.h" · b54d4dd4
      sdong 提交于
      Summary:
      util/testutil.h doesn't seem to be used in tools/sst_dump_tool_imp.h. Remove it.
      Also move some other include to tools/sst_dump_tool.cc instead.
      
      Test Plan: Build with GCC, CLANG and with GCC 4.81 and 4.9.
      
      Reviewers: yuslepukhin, yhchiang, rven, anthony, IslamAbdelRahman
      
      Reviewed By: IslamAbdelRahman
      
      Subscribers: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D52791
      b54d4dd4
  10. 13 1月, 2016 1 次提交
  11. 12 1月, 2016 3 次提交
    • I
      Reduce iterator deletion overhead · d9bca1e1
      Islam AbdelRahman 提交于
      Summary:
      After introducing Iterator::PinData(), we have extra overhead of deleting the pinned iterators that we track in a std::set
      This patch avoid inserting to the std::set if we have only one iterator (normal use case when no iterators are pinned)
      
      Before this change
      ```
      DEBUG_LEVEL=0 make db_bench -j64 && ./db_bench --benchmarks="newiterator" --db="/tmp/rocksdbtest-8616/dbbench" --use_existing_db --disable_auto_compactions
      newiterator  :       1.006 micros/op 994013 ops/sec;
      newiterator  :       0.994 micros/op 1006295 ops/sec;
      newiterator  :       0.990 micros/op 1010422 ops/sec;
      ```
      
      After change
      
      ```
      DEBUG_LEVEL=0 make db_bench -j64 && ./db_bench --benchmarks="newiterator" --db="/tmp/rocksdbtest-8616/dbbench" --use_existing_db --disable_auto_compactions
      newiterator  :       0.754 micros/op 1326588 ops/sec;
      newiterator  :       0.759 micros/op 1317394 ops/sec;
      newiterator  :       0.691 micros/op 1446704 ops/sec;
      ```
      
      Test Plan: make check -j64
      
      Reviewers: yhchiang, rven, anthony, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D52761
      d9bca1e1
    • I
      Merge pull request #940 from yuslepukhin/fix_windows_build_signed_unsigned · 45d79406
      Igor Canadi 提交于
      Fix compile error.
      45d79406
    • D
      Fix compile error. · 20d7902d
      Dmitri Smirnov 提交于
        Use constructor style initialization instead of a cast for
        simplicity.
      20d7902d