summaryrefslogtreecommitdiff
path: root/src/third_party
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2020-09-15 16:11:35 +1000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-15 06:29:48 +0000
commit7157b100036b43b62af1d8d0aa8e66a78e6c9d43 (patch)
treedab29bce67dd4387df3c0a1bc146a93a05e6ab88 /src/third_party
parente27815102992d997a8db431a6916da982b5d9315 (diff)
downloadmongo-7157b100036b43b62af1d8d0aa8e66a78e6c9d43.tar.gz
Import wiredtiger: 56492ae3bc3b021c8ead883d4f841db7cf6b3ded from branch mongodb-4.6
ref: 2b801c9c68..56492ae3bc for: 4.8.0 WT-6064 Enable coverage-report test in evergreen WT-6666 Start op timer when we configure it in rollback and commit
Diffstat (limited to 'src/third_party')
-rw-r--r--src/third_party/wiredtiger/import.data2
-rw-r--r--src/third_party/wiredtiger/src/txn/txn.c17
-rwxr-xr-xsrc/third_party/wiredtiger/test/evergreen.yml39
3 files changed, 35 insertions, 23 deletions
diff --git a/src/third_party/wiredtiger/import.data b/src/third_party/wiredtiger/import.data
index 1cf629a5406..6ca2ec664e9 100644
--- a/src/third_party/wiredtiger/import.data
+++ b/src/third_party/wiredtiger/import.data
@@ -2,5 +2,5 @@
"vendor": "wiredtiger",
"github": "wiredtiger/wiredtiger.git",
"branch": "mongodb-4.6",
- "commit": "2b801c9c68c8d866fcfe5a9affaff06190c11ce6"
+ "commit": "56492ae3bc3b021c8ead883d4f841db7cf6b3ded"
}
diff --git a/src/third_party/wiredtiger/src/txn/txn.c b/src/third_party/wiredtiger/src/txn/txn.c
index e5d24d90650..553ba394660 100644
--- a/src/third_party/wiredtiger/src/txn/txn.c
+++ b/src/third_party/wiredtiger/src/txn/txn.c
@@ -459,7 +459,7 @@ done:
* Configure a transactions operation timeout duration.
*/
static int
-__txn_config_operation_timeout(WT_SESSION_IMPL *session, const char *cfg[])
+__txn_config_operation_timeout(WT_SESSION_IMPL *session, const char *cfg[], bool start_timer)
{
WT_CONFIG_ITEM cval;
WT_TXN *txn;
@@ -476,8 +476,15 @@ __txn_config_operation_timeout(WT_SESSION_IMPL *session, const char *cfg[])
* The default configuration value is 0, we can't tell if they're setting it back to 0 or, if
* the default was automatically passed in.
*/
- if (cval.val != 0)
+ if (cval.val != 0) {
txn->operation_timeout_us = (uint64_t)(cval.val * WT_THOUSAND);
+ /*
+ * The op timer will generally be started on entry to the API call however when we configure
+ * it internally we need to start it separately.
+ */
+ if (start_timer)
+ __wt_op_timer_start(session);
+ }
return (0);
}
@@ -504,7 +511,7 @@ __wt_txn_config(WT_SESSION_IMPL *session, const char *cfg[])
WT_STRING_MATCH("read-committed", cval.str, cval.len) ? WT_ISO_READ_COMMITTED :
WT_ISO_READ_UNCOMMITTED;
- WT_RET(__txn_config_operation_timeout(session, cfg));
+ WT_RET(__txn_config_operation_timeout(session, cfg, false));
/*
* The default sync setting is inherited from the connection, but can be overridden by an
@@ -1280,7 +1287,7 @@ __wt_txn_commit(WT_SESSION_IMPL *session, const char *cfg[])
WT_ASSERT(session, !F_ISSET(txn, WT_TXN_ERROR) || txn->mod_count == 0);
/* Configure the timeout for this commit operation. */
- WT_ERR(__txn_config_operation_timeout(session, cfg));
+ WT_ERR(__txn_config_operation_timeout(session, cfg, true));
/*
* Clear the prepared round up flag if the transaction is not prepared. There is no rounding up
@@ -1690,7 +1697,7 @@ __wt_txn_rollback(WT_SESSION_IMPL *session, const char *cfg[])
WT_TRET(txn->notify->notify(txn->notify, (WT_SESSION *)session, txn->id, 0));
/* Configure the timeout for this rollback operation. */
- WT_RET(__txn_config_operation_timeout(session, cfg));
+ WT_RET(__txn_config_operation_timeout(session, cfg, true));
/*
* Resolving prepared updates is expensive. Sort prepared modifications so all updates for each
diff --git a/src/third_party/wiredtiger/test/evergreen.yml b/src/third_party/wiredtiger/test/evergreen.yml
index 1b70c53d52b..e64a66623a6 100755
--- a/src/third_party/wiredtiger/test/evergreen.yml
+++ b/src/third_party/wiredtiger/test/evergreen.yml
@@ -1955,9 +1955,10 @@ tasks:
- func: "format test"
vars:
extra_args: checkpoints=1 leak_memory=0 mmap=1 file_type=row compression=snappy logging=1 logging_compression=snappy logging_prealloc=1
- - func: "format test"
- vars:
- extra_args: checkpoints=1 leak_memory=0 mmap=1 file_type=row alter=1 backups=1 compaction=1 data_extend=1 prepare=1 rebalance=1 salvage=1 statistics=1 statistics_server=1 verify=1
+ # FIXME-WT-6410: temporarily disable rebalance test
+ # - func: "format test"
+ # vars:
+ # extra_args: checkpoints=1 leak_memory=0 mmap=1 file_type=row alter=1 backups=1 compaction=1 data_extend=1 prepare=1 rebalance=1 salvage=1 statistics=1 statistics_server=1 verify=1
- func: "format test"
vars:
extra_args: checkpoints=1 leak_memory=0 mmap=1 file_type=row firstfit=1 internal_key_truncation=1
@@ -1967,24 +1968,28 @@ tasks:
- func: "format test"
vars:
extra_args: checkpoints=1 leak_memory=0 mmap=1 file_type=row compression=zlib huffman_key=1 huffman_value=1
- - func: "format test"
- vars:
- extra_args: checkpoints=1 leak_memory=0 mmap=1 file_type=row isolation=random transaction_timestamps=0
+ # FIXME-WT-6668: temporarily disable lower isolation level test
+ # - func: "format test"
+ # vars:
+ # extra_args: checkpoints=1 leak_memory=0 mmap=1 file_type=row isolation=random transaction_timestamps=0
- func: "format test"
vars:
extra_args: checkpoints=1 leak_memory=0 mmap=1 file_type=row data_source=lsm bloom=1
- - func: "format test"
- vars:
- extra_args: checkpoints=1 leak_memory=0 mmap=1 file_type=var compression=snappy checksum=uncompressed dictionary=1 repeat_data_pct=10
+ # FIXME-WT-6669: temporarily disable column store test
+ # - func: "format test"
+ # vars:
+ # extra_args: checkpoints=1 leak_memory=0 mmap=1 file_type=var compression=snappy checksum=uncompressed dictionary=1 repeat_data_pct=10
- func: "format test"
vars:
extra_args: checkpoints=1 leak_memory=0 mmap=1 file_type=row compression=lz4 prefix_compression=1 leaf_page_max=9 internal_page_max=9 key_min=256 value_min=256
- - func: "format test"
- vars:
- extra_args: checkpoints=1 leak_memory=0 mmap=1 file_type=var leaf_page_max=9 internal_page_max=9 value_min=256
- - func: "format test"
- vars:
- extra_args: checkpoints=1 leak_memory=0 mmap=1 file_type=fix
+ # FIXME-WT-6669: temporarily disable column store test
+ # - func: "format test"
+ # vars:
+ # extra_args: checkpoints=1 leak_memory=0 mmap=1 file_type=var leaf_page_max=9 internal_page_max=9 value_min=256
+ # FIXME-WT-6669: temporarily disable column store test
+ # - func: "format test"
+ # vars:
+ # extra_args: checkpoints=1 leak_memory=0 mmap=1 file_type=fix
- command: shell.exec
params:
working_dir: "wiredtiger/build_posix"
@@ -2412,7 +2417,7 @@ buildvariants:
- name: make-check-asan-test
- name: configure-combinations
- name: checkpoint-filetypes-test
- # - name: coverage-report
+ - name: coverage-report
- name: unit-test-long
- name: spinlock-gcc-test
- name: spinlock-pthread-adaptive-test
@@ -2523,7 +2528,7 @@ buildvariants:
- name: ftruncate-test
- name: long-test
- name: configure-combinations
- # - name: coverage-report
+ - name: coverage-report
- name: large-scale-tests
display_name: "~ Large scale tests"