test/lib/cql_test_env: forward config to batchlog
Currently all batchlog config items are hardcoded. Make the two important ones configurable: replay_timeout and replay_cleanup_after_replays.
This commit is contained in:
@@ -1153,8 +1153,9 @@ private:
|
||||
|
||||
db::batchlog_manager_config bmcfg;
|
||||
bmcfg.replay_rate = 100000000;
|
||||
bmcfg.replay_timeout = 2s;
|
||||
bmcfg.delay = 0ms;
|
||||
bmcfg.replay_timeout = cfg_in.batchlog_replay_timeout.value_or(2s);
|
||||
bmcfg.delay = cfg_in.batchlog_delay;
|
||||
bmcfg.replay_cleanup_after_replays = cfg->batchlog_replay_cleanup_after_replays();
|
||||
_batchlog_manager.start(std::ref(_qp), std::ref(_sys_ks), bmcfg).get();
|
||||
auto stop_bm = defer_verbose_shutdown("batchlog manager", [this] {
|
||||
_batchlog_manager.stop().get();
|
||||
|
||||
@@ -107,6 +107,9 @@ public:
|
||||
bool run_with_raft_recovery = false;
|
||||
bool clean_data_dir_before_test = true;
|
||||
|
||||
std::optional<db_clock::duration> batchlog_replay_timeout;
|
||||
std::chrono::milliseconds batchlog_delay = std::chrono::milliseconds(0);
|
||||
|
||||
std::optional<timeout_config> query_timeout;
|
||||
|
||||
cql_test_config();
|
||||
|
||||
Reference in New Issue
Block a user