1. 23 9月, 2015 1 次提交
    • K
      Disabling parallel test CI job · a6c22e3e
      krad 提交于
      Summary: Parallel test CI is failing. Reducing noise by temporarily disabling
      the job
      
      Test Plan: Manual
      
      Reviewers:
      
      CC: leveldb@
      
      Task ID: #6968635
      
      Blame Rev:
      a6c22e3e
  2. 22 9月, 2015 5 次提交
  3. 20 9月, 2015 1 次提交
    • K
      Fix to CI jobs. · 4d6eb52d
      krad 提交于
      Summary: The approach to serialize long scripts as string is flawed. Instead
      adding args to invoke the long scripts.
      
      Test Plan: Manual test
      
      Reviewers:
      
      CC: leveldb@
      
      Task ID: #6968635
      
      Blame Rev:
      4d6eb52d
  4. 19 9月, 2015 8 次提交
  5. 18 9月, 2015 8 次提交
    • I
      Merge pull request #725 from adamretter/fail-failed-java-test · e244bdf3
      Igor Canadi 提交于
      Exit with non-zero status if one or more Java tests fail
      e244bdf3
    • A
      7d937a09
    • A
      Check formatting in Travis · 1b598213
      Andres Noetzli 提交于
      Summary:
      Check code formatting before running tests. Goal is to make it easier to deal
      with external pull requests.
      
      Test Plan: See https://travis-ci.org/facebook/rocksdb/builds/80952963
      
      Reviewers: igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D47211
      1b598213
    • A
      Fix non-deterministic failure in backupable_db_test · c7fba802
      agiardullo 提交于
      Summary: FailOverwritingBackups has unexpected results when auto-compaction runs.
      
      Test Plan: ran test a bunch of times
      
      Reviewers: IslamAbdelRahman, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D47181
      c7fba802
    • A
      Support for SingleDelete() · 014fd55a
      Andres Noetzli 提交于
      Summary:
      This patch fixes #7460559. It introduces SingleDelete as a new database
      operation. This operation can be used to delete keys that were never
      overwritten (no put following another put of the same key). If an overwritten
      key is single deleted the behavior is undefined. Single deletion of a
      non-existent key has no effect but multiple consecutive single deletions are
      not allowed (see limitations).
      
      In contrast to the conventional Delete() operation, the deletion entry is
      removed along with the value when the two are lined up in a compaction. Note:
      The semantics are similar to @igor's prototype that allowed to have this
      behavior on the granularity of a column family (
      https://reviews.facebook.net/D42093 ). This new patch, however, is more
      aggressive when it comes to removing tombstones: It removes the SingleDelete
      together with the value whenever there is no snapshot between them while the
      older patch only did this when the sequence number of the deletion was older
      than the earliest snapshot.
      
      Most of the complex additions are in the Compaction Iterator, all other changes
      should be relatively straightforward. The patch also includes basic support for
      single deletions in db_stress and db_bench.
      
      Limitations:
      - Not compatible with cuckoo hash tables
      - Single deletions cannot be used in combination with merges and normal
        deletions on the same key (other keys are not affected by this)
      - Consecutive single deletions are currently not allowed (and older version of
        this patch supported this so it could be resurrected if needed)
      
      Test Plan: make all check
      
      Reviewers: yhchiang, sdong, rven, anthony, yoshinorim, igor
      
      Reviewed By: igor
      
      Subscribers: maykov, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D43179
      014fd55a
    • I
      Merge pull request #723 from jsteemann/fix-typos · f35560d0
      Igor Canadi 提交于
      fixed typos in comments of options.h
      f35560d0
    • J
      fixed typos · f8b770a9
      jsteemann 提交于
      f8b770a9
    • V
      Do not flag error if file to be deleted does not exist · 51e1c112
      Venkatesh Radhakrishnan 提交于
      Summary:
      Some users have observed errors in the log file when
      the log file or sst file is already deleted.
      
      Test Plan:
      Make sure that the errors do not appear for already deleted
      files.
      
      Reviewers: sdong
      
      Reviewed By: sdong
      
      Subscribers: anthony, kradhakrishnan, yhchiang, rven, igor, IslamAbdelRahman, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D47115
      51e1c112
  6. 17 9月, 2015 8 次提交
  7. 16 9月, 2015 9 次提交
    • I
      Skipped tests shouldn't be failures [part 2] · 81a61d75
      Igor Canadi 提交于
      Summary: Missed one file in the previous commit
      
      Test Plan: compiles
      
      Reviewers: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D47055
      81a61d75
    • I
      Skipped tests shouldn't be failures · 1b7ea8ce
      Igor Canadi 提交于
      Summary: If we skip a test, we shouldn't mark `make check` as failure. This fixes travis CI test.
      
      Test Plan: Travis CI
      
      Reviewers: noetzli, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D47031
      1b7ea8ce
    • A
      Add compaction time to log output · 5ba3297d
      Ari Ekmekji 提交于
      Summary:
      Although compaction time is recorded in the statistics,
      it is helpful to include this value in the log output corresponding
      to the end of compaction.
      
      Test Plan: make all && make check
      
      Reviewers: yhchiang, sdong, igor, noetzli, MarkCallaghan
      
      Reviewed By: MarkCallaghan
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D47007
      5ba3297d
    • D
      Callback for informing backup downloading added · 31a27a36
      Dmytro Okhonko 提交于
      Summary:
      In case of huge db backup infromation about progress of downloading would help.
      New callback parameter in CreateNewBackup() function will trigger whenever a some amount of data downloaded.
      Task: 8057631
      
      Test Plan:
      ProgressCallbackDuringBackup test that cover new functionality added to BackupableDBTest tests.
      other test succeed as well.
      
      Reviewers: Guenena, benj, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D46575
      31a27a36
    • I
      [travis CI] Run ulimit -n 2000 · d93a9f2a
      Igor Canadi 提交于
      Summary: This should let us pass tests on OS X.
      
      Test Plan: none yet
      
      Reviewers: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D46989
      d93a9f2a
    • A
      Add DBOption.max_subcompaction to option dump · 2b683d49
      Ari Ekmekji 提交于
      Summary:
      RocksDB options can be dumped to the log file, and
      up to this point the max_subcompactions option was not included
      in this dump. This fixes that.
      
      Test Plan: makek all && make check
      
      Reviewers: MarkCallaghan, igor, noetzli, anthony, yhchiang, sdong
      
      Reviewed By: yhchiang, sdong
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D46971
      2b683d49
    • I
      Merge issue with D46773 · 0e50a3fc
      Igor Canadi 提交于
      Summary: There was a merge issue with SleepingBackgroundTask
      
      Test Plan: compiles now
      
      Reviewers: sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D46977
      0e50a3fc
    • I
      LogAndApply() should fail if the column family has been dropped · a7e80379
      Igor Canadi 提交于
      Summary:
      This patch finally fixes the ColumnFamilyTest.ReadDroppedColumnFamily test. The test has been failing very sporadically and it was hard to repro. However, I managed to write a new tests that reproes the failure deterministically.
      
      Here's what happens:
      1. We start the flush for the column family
      2. We check if the column family was dropped here: https://github.com/facebook/rocksdb/blob/a3fc49bfddcdb1ff29409aacd06c04df56c7a1d7/db/flush_job.cc#L149
      3. This check goes through, ends up in InstallMemtableFlushResults() and it goes into LogAndApply()
      4. At about this time, we start dropping the column family. Dropping the column family process gets to LogAndApply() at about the same time as LogAndApply() from flush process
      5. Drop column family goes through LogAndApply() first, marking the column family as dropped.
      6. Flush process gets woken up and gets a chance to write to the MANIFEST. However, this is where it gets stuck: https://github.com/facebook/rocksdb/blob/a3fc49bfddcdb1ff29409aacd06c04df56c7a1d7/db/version_set.cc#L1975
      7. We see that the column family was dropped, so there is no need to write to the MANIFEST. We return OK.
      8. Flush gets OK back from LogAndApply() and it deletes the memtable, thinking that the data is now safely persisted to sst file.
      
      The fix is pretty simple. Instead of OK, we return ShutdownInProgress. This is not really true, but we have been using this status code to also mean "this operation was canceled because the column family has been dropped".
      
      The fix is only one LOC. All other code is related to tests. I added a new test that reproes the failure. I also moved SleepingBackgroundTask to util/testutil.h (because I needed it in column_family_test for my new test). There's plenty of other places where we reimplement SleepingBackgroundTask, but I'll address that in a separate commit.
      
      Test Plan:
      1. new test
      2. make check
      3. Make sure the ColumnFamilyTest.ReadDroppedColumnFamily doesn't fail on Travis: https://travis-ci.org/facebook/rocksdb/jobs/79952386
      
      Reviewers: yhchiang, anthony, IslamAbdelRahman, kradhakrishnan, rven, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D46773
      a7e80379
    • K
      Minor fix to CI job definition · 2819a1db
      krad 提交于
      Summary: Timeout needs to be set for command and job for it to work.
      
      Test Plan: Manual
      
      Reviewers: sdong igor
      
      CC: levledb@
      
      Task ID: #6968635
      
      Blame Rev:
      2819a1db