summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2016-04-19 08:46:47 -0400
committerKeith Bostic <keith@wiredtiger.com>2016-04-19 08:46:47 -0400
commit7d4e2cf5ca83b277b97a2f3e3dad57db5068f012 (patch)
treeb96fdf40ceb1c3fce57a7b03d8df5d5c02e5b031 /test
parent9d68f1c749f8f9c2268df17c7bc6e3bf3e336a20 (diff)
parenteb8080b6eeca88bd6c3ee1faf40d487067cab01c (diff)
downloadmongo-7d4e2cf5ca83b277b97a2f3e3dad57db5068f012.tar.gz
Merge branch 'develop' into wt-2223
Diffstat (limited to 'test')
-rw-r--r--test/format/backup.c5
-rw-r--r--test/suite/test_reconfig02.py10
2 files changed, 13 insertions, 2 deletions
diff --git a/test/format/backup.c b/test/format/backup.c
index f0d3f8df58f..977b44c2e11 100644
--- a/test/format/backup.c
+++ b/test/format/backup.c
@@ -159,6 +159,11 @@ backup(void *arg)
testutil_check(backup_cursor->close(backup_cursor));
testutil_check(pthread_rwlock_unlock(&g.backup_lock));
+ /* After an incremental backup, truncate the log files. */
+ if (incremental)
+ testutil_check(session->truncate(
+ session, "log:", backup_cursor, NULL, NULL));
+
/*
* If automatic log archival isn't configured, optionally do
* incremental backups after each full backup. If we're not
diff --git a/test/suite/test_reconfig02.py b/test/suite/test_reconfig02.py
index aee8ee4458b..85a9ceb2a34 100644
--- a/test/suite/test_reconfig02.py
+++ b/test/suite/test_reconfig02.py
@@ -74,9 +74,15 @@ class test_reconfig02(wttest.WiredTigerTestCase):
# Now turn on pre-allocation. Sleep to give the worker thread
# a chance to run and verify pre-allocated log files exist.
+ #
+ # Potentially loop a few times in case it is a very slow system.
self.conn.reconfigure("log=(prealloc=true)")
- time.sleep(2)
- prep_logs = fnmatch.filter(os.listdir('.'), "*Prep*")
+ for x in xrange(0, 20):
+ time.sleep(1)
+ prep_logs = fnmatch.filter(os.listdir('.'), "*Prep*")
+ if len(prep_logs) != 0:
+ break
+
self.assertNotEqual(0, len(prep_logs))
# Logging starts on, but archive is off. Verify it is off.