diff options
author | Will Korteland <will.korteland@mongodb.com> | 2022-03-24 05:03:53 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-24 05:35:56 +0000 |
commit | 84d4191d2c86740469b91da76471386812372992 (patch) | |
tree | 8866654029b612b7589f18d919060a643fa4c663 /src/third_party/wiredtiger/test/checkpoint | |
parent | 6aee10ef39b5a8703ad12de1b1440a8b0f69126f (diff) | |
download | mongo-84d4191d2c86740469b91da76471386812372992.tar.gz |
Import wiredtiger: a2ec68905add46df8661ff50073f595ef2c79eae from branch mongodb-master
ref: e08bd412d6..a2ec68905a
for: 6.0.0
Reverted ticket(s):
WT-8223 Enhance test/checkpoint to operate on a high eviction rate
Diffstat (limited to 'src/third_party/wiredtiger/test/checkpoint')
-rw-r--r-- | src/third_party/wiredtiger/test/checkpoint/test_checkpoint.c | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/src/third_party/wiredtiger/test/checkpoint/test_checkpoint.c b/src/third_party/wiredtiger/test/checkpoint/test_checkpoint.c index 6d6af435040..8c14b268f83 100644 --- a/src/third_party/wiredtiger/test/checkpoint/test_checkpoint.c +++ b/src/third_party/wiredtiger/test/checkpoint/test_checkpoint.c @@ -261,13 +261,11 @@ wt_connect(const char *config_open) static WT_EVENT_HANDLER event_handler = { handle_error, handle_message, NULL, NULL /* Close handler. */ }; - WT_RAND_STATE rnd; int ret; char config[512]; char timing_stress_config[512]; - bool fast_eviction, timing_stress; + bool timing_stress; - fast_eviction = false; timing_stress = false; if (g.sweep_stress || g.failpoint_hs_delete_key_from_ts || g.hs_checkpoint_timing_stress || g.reserved_txnid_timing_stress || g.checkpoint_slow_timing_stress) { @@ -281,33 +279,22 @@ wt_connect(const char *config_open) } /* - * Randomly decide on the eviction rate (fast or default). - */ - - if ((__wt_random(&rnd) % 15) % 2 == 0) - fast_eviction = true; - - /* * If we want to stress sweep, we have a lot of additional configuration settings to set. */ if (g.sweep_stress) testutil_check(__wt_snprintf(config, sizeof(config), "create,cache_cursors=false,statistics=(fast),statistics_log=(json,wait=1),error_prefix=" "\"%s\",file_manager=(close_handle_minimum=1,close_idle_time=1,close_scan_interval=1)," - "log=(enabled),cache_size=1GB, eviction_dirty_trigger=%i, " - "eviction_dirty_target=%i,%s%s%s%s", - progname, fast_eviction ? 5 : 20, fast_eviction ? 1 : 5, timing_stress_config, - g.debug_mode ? DEBUG_MODE_CFG : "", config_open == NULL ? "" : ",", - config_open == NULL ? "" : config_open)); - else + "log=(enabled),cache_size=1GB%s%s%s%s", + progname, timing_stress_config, g.debug_mode ? DEBUG_MODE_CFG : "", + config_open == NULL ? "" : ",", config_open == NULL ? "" : config_open)); + else { testutil_check(__wt_snprintf(config, sizeof(config), "create,cache_cursors=false,statistics=(fast),statistics_log=(json,wait=1),log=(enabled)," - "error_prefix=\"%s\",cache_size=1G, eviction_dirty_trigger=%i, " - "eviction_dirty_target=%i,%s%s%s%s", - progname, fast_eviction ? 5 : 20, fast_eviction ? 1 : 5, - g.debug_mode ? DEBUG_MODE_CFG : "", config_open == NULL ? "" : ",", + "error_prefix=\"%s\",cache_size=1G%s%s%s%s", + progname, g.debug_mode ? DEBUG_MODE_CFG : "", config_open == NULL ? "" : ",", config_open == NULL ? "" : config_open, timing_stress ? timing_stress_config : "")); - + } printf("WT open config: %s\n", config); if ((ret = wiredtiger_open(g.home, &event_handler, config, &g.conn)) != 0) return (log_print_err("wiredtiger_open", ret, 1)); |