Skip to content

Commit

Permalink
Fix non-deterministic failure in backupable_db_test
Browse files Browse the repository at this point in the history
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
  • Loading branch information
agiardullo committed Sep 18, 2015
1 parent 014fd55 commit c7fba80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utilities/backupable/backupable_db_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,8 @@ TEST_F(BackupableDBTest, OnlineIntegrationTest) {

TEST_F(BackupableDBTest, FailOverwritingBackups) {
options_.write_buffer_size = 1024 * 1024 * 1024; // 1GB
options_.disable_auto_compactions = true;

// create backups 1, 2, 3, 4, 5
OpenDBAndBackupEngine(true);
for (int i = 0; i < 5; ++i) {
Expand Down

0 comments on commit c7fba80

Please sign in to comment.