diff options
author | Luke Chen <luke.chen@mongodb.com> | 2018-08-13 15:46:37 +1000 |
---|---|---|
committer | Luke Chen <luke.chen@mongodb.com> | 2018-08-13 15:46:37 +1000 |
commit | ec6f2a54d8b901e95e556d53647944be8ce441d5 (patch) | |
tree | a75c521f1918cf0343acf2ced1669567e2a7b854 /src/third_party/wiredtiger/test/csuite/schema_abort/main.c | |
parent | 1c52af393ebc9040fbc300293835f68f827304ce (diff) | |
download | mongo-ec6f2a54d8b901e95e556d53647944be8ce441d5.tar.gz |
Import wiredtiger: c91b80412603f283532e267893f9238dd4a5ec0f from branch mongodb-4.2
ref: 65531924e3..c91b804126
for: 4.1.2
WT-3856 Create a test that runs recovery to different points of time with schema operations
WT-4026 Add implementation for existing file extension configuration API
WT-4193 test/format snapshot-isolation search mismatch
WT-4194 Improve fairness of eviction with multiple tables
WT-4207 Coverity #1394567: null pointer dereference
WT-4210 schema abort child process failing prematurely
WT-4215 Allow recovery of backup without salvage
WT-4229 Lint
WT-4234 Remove documentation mention of legacy tool statlog.py
WT-4235 Fix workgen tracking of table state across workloads
WT-4242 New log file extension Python test failure
Diffstat (limited to 'src/third_party/wiredtiger/test/csuite/schema_abort/main.c')
-rw-r--r-- | src/third_party/wiredtiger/test/csuite/schema_abort/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/test/csuite/schema_abort/main.c b/src/third_party/wiredtiger/test/csuite/schema_abort/main.c index 735faa417c3..ff0b74edcad 100644 --- a/src/third_party/wiredtiger/test/csuite/schema_abort/main.c +++ b/src/third_party/wiredtiger/test/csuite/schema_abort/main.c @@ -537,7 +537,6 @@ thread_ckpt_run(void *arg) testutil_check(td->conn->open_session(td->conn, NULL, NULL, &session)); first_ckpt = true; ts = 0; - __wt_epoch(NULL, &start); for (i = 0; ;++i) { sleep_time = __wt_random(&rnd) % MAX_CKPT_INVL; sleep(sleep_time); @@ -555,9 +554,12 @@ thread_ckpt_run(void *arg) /* * Create the checkpoint file so that the parent process knows * at least one checkpoint has finished and can start its - * timer. + * timer. Start the timer for stable after the first checkpoint + * completes because a slow I/O lag during the checkpoint can + * cause a false positive for a timeout. */ if (first_ckpt) { + __wt_epoch(NULL, &start); testutil_checksys((fp = fopen(ckpt_file, "w")) == NULL); first_ckpt = false; testutil_checksys(fclose(fp) != 0); |