1. 19 4月, 2016 6 次提交
    • A
      New legocastle output parsing · ec84bef2
      Andrew Kryczka 提交于
      Summary:
      Added a python script to parse combined stdout/stderr of legocastle
      steps. Previously we just matched words like 'Failure', which didn't work since
      even our test names matched that pattern.
      
      I went through all the legocastle steps to come up with strict failure regexes
      for the common failure cases. There is also some more complex logic to present
      gtest failures, since the test name and failure message are not on the same
      line.
      
      There will definitely be error cases that don't match any of these patterns, so
      we can iterate on it over time.
      
      Test Plan:
      no end-to-end test. I ran the legocastle steps locally and piped to
      my script, then verified output, e.g.,
      
        $ set -o pipefail && TEST_TMPDIR=/dev/shm/rocksdb COMPILE_WITH_ASAN=1 OPT=-g make J=1 asan_check |& /usr/facebook/ops/scripts/asan_symbolize.py -d |& python build_tools/error_filter.py asan
        ==2058029==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000a414 at pc 0x4c12f6 bp 0x7ffcfb7a0520 sp 0x7ffcfb7a0518
      
      Reviewers: kradhakrishnan
      
      Reviewed By: kradhakrishnan
      
      Subscribers: andrewkr, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D56691
      ec84bef2
    • Y
      Fix db_block_cache_test in lite build · 725184b0
      Yi Wu 提交于
      Summary: D56715 move some of the tests from db_test to db_block_cache_test. Some of them should be disabled in lite build.
      
      Test Plan:
          make check -j32
          OPT='-DROCKSDB_LITE' make check -j32
      
      Reviewers: sdong
      
      Reviewed By: sdong
      
      Subscribers: andrewkr, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D56907
      725184b0
    • Y
      Fix lite build · 290883d9
      Yi Wu 提交于
      Summary: Fix rocksdb lite build after D56715.
      
      Test Plan:
        make -j40 'OPT=-g -DROCKSDB_LITE'
      
      Reviewers: sdong
      
      Reviewed By: sdong
      
      Subscribers: andrewkr, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D56895
      290883d9
    • S
      write_callback_test: clean test directory before running tests · 23089fd2
      sdong 提交于
      Summary: write_callback_test fails if previous run didn't finish cleanly. Clean the DB before runing the test.
      
      Test Plan: Run the test that see it doesn't fail any more.
      
      Reviewers: andrewkr, yhchiang, yiwu, IslamAbdelRahman
      
      Reviewed By: IslamAbdelRahman
      
      Subscribers: kradhakrishnan, leveldb, andrewkr, dhruba
      
      Differential Revision: https://reviews.facebook.net/D56859
      23089fd2
    • Y
      Split db_test.cc · 792762c4
      Yi Wu 提交于
      Summary: Split db_test.cc into several files. Moving several helper functions into DBTestBase.
      
      Test Plan: make check
      
      Reviewers: sdong, yhchiang, IslamAbdelRahman
      
      Reviewed By: IslamAbdelRahman
      
      Subscribers: dhruba, andrewkr, kradhakrishnan, yhchiang, leveldb, sdong
      
      Differential Revision: https://reviews.facebook.net/D56715
      792762c4
    • A
      Delete deprecated *BackupableDB interface for backups · 40b840f2
      Andrew Kryczka 提交于
      Summary:
      This interface is redundant and has been deprecated for a while.
      It's also unused internally. Let's delete it.
      
      I moved the comments to the corresponding functions in BackupEngine/
      BackupEngineReadOnly. This caused the diff tool to not work cleanly.
      
      Test Plan:
      unit tests
      
        $ ./backupable_db_test
      
      Reviewers: yhchiang, sdong
      
      Reviewed By: sdong
      
      Subscribers: andrewkr, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D56331
      40b840f2
  2. 18 4月, 2016 1 次提交
    • Y
      Make more tests run in parallel · 6affd45d
      Yi Wu 提交于
      Summary:
      Generate t/run-* scripts to run tests in $PARALLEL_TEST separately, then make check_0 rule execute all of them.
      
      Run `time make check` after running `make all`.
      master: 71 sec
      with this diff: 63 sec.
      
      It seems moving more tests to $PARALLEL_TEST doesn't help improve test time though.
      
      Test Plan:
      Run the following
        make check
        J=16 make check
        J=1 make check
        make valgrind_check
        J=1 make valgrind_check
        J=16 make_valgrind_check
      
      Reviewers: IslamAbdelRahman, sdong
      
      Reviewed By: sdong
      
      Subscribers: leveldb, kradhakrishnan, dhruba, andrewkr, yhchiang
      
      Differential Revision: https://reviews.facebook.net/D56805
      6affd45d
  3. 16 4月, 2016 8 次提交
  4. 15 4月, 2016 5 次提交
  5. 14 4月, 2016 7 次提交
  6. 13 4月, 2016 5 次提交
    • S
      BlockBasedTable::PrefixMayMatch: no need to find data block after full bloom checking · dff4c48e
      sdong 提交于
      Summary:
      Full block checking should be a good enough indication of prefix existance. No need to further check data block.
      This also fixes wrong results when using prefix bloom and reverse bitwise comparator.
      
      Test Plan: Will add a unit test.
      
      Reviewers: yhchiang, IslamAbdelRahman
      
      Reviewed By: IslamAbdelRahman
      
      Subscribers: hermanlee4, yoshinorim, yiwu, kradhakrishnan, leveldb, andrewkr, dhruba
      
      Differential Revision: https://reviews.facebook.net/D56625
      dff4c48e
    • K
      Propagate sandcastle run error to UI · 0353b853
      krad 提交于
      Summary:
      Currently the code does not propagate the sandcastle precommit test run
      error status to UI. This can confuse the developer when searching for errors.
      
      With this change, all success should be in green and all errors should be in red
      
      Test Plan: Submit the diff (and hopefully something will fail)
      
      Reviewers: andrewkr
      
      Subscribers: andrewkr, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D56595
      0353b853
    • I
      Parallelize travis jobs · b885f33a
      Islam AbdelRahman 提交于
      Summary:
      Update travis.yml to split the work into 3 sub jobs
      - running unittests
      - Building and testing java
      - building ROCKSDB_LITE
      
      Test Plan: https://travis-ci.org/facebook/rocksdb/builds/122433169
      
      Reviewers: sdong, yhchiang, andrewkr, kradhakrishnan
      
      Reviewed By: kradhakrishnan
      
      Subscribers: andrewkr, dhruba
      
      Differential Revision: https://reviews.facebook.net/D56607
      b885f33a
    • H
      Update db_bench_tool.cc (#1073) · 71303e04
      Hyunyoung Lee 提交于
      * Update db_bench_tool.cc
      
      I fixed the wrong letters, LevelDB -> rocksDB, because I thought of LevelDB as the wrong presentation.
      
      the following show my fix :
      
      fprintf(stderr, "LevelDB:    version %d.%d\n",
                  kMajorVersion, kMinorVersion);
      
      ----------------->
      fprintf(stderr, "rocksDB:    version %d.%d\n",
                  kMajorVersion, kMinorVersion);
      
      * Update db_bench_tool.cc
      
      * Update db_bench_tool.cc
      71303e04
    • S
      Fix option settable tests · 63cf15bb
      sdong 提交于
      Summary: In option settable tests, bytes for pointers are not all skipped, so that they may be the same as the special character and cause false positive.
      
      Test Plan: Run the test. Manually verify the issue is not there any more.
      
      Reviewers: IslamAbdelRahman, andrewkr
      
      Reviewed By: IslamAbdelRahman
      
      Subscribers: kradhakrishnan, yiwu, yhchiang, leveldb, andrewkr, dhruba
      
      Differential Revision: https://reviews.facebook.net/D56553
      63cf15bb
  7. 12 4月, 2016 8 次提交