This is an automated email from the ASF dual-hosted git repository.
liaoxin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new eaf0157c6f5 [test](cloud) Reduce testing duration when there is no fdb
available (#33930)
eaf0157c6f5 is described below
commit eaf0157c6f5ea6579362c7748adceafc3be34537
Author: Gavin Chou <[email protected]>
AuthorDate: Sun Apr 21 21:00:58 2024 +0800
[test](cloud) Reduce testing duration when there is no fdb available
(#33930)
---
cloud/test/fdb_injection_test.cpp | 2 ++
cloud/test/mem_txn_kv_test.cpp | 2 ++
cloud/test/txn_kv_test.cpp | 2 ++
3 files changed, 6 insertions(+)
diff --git a/cloud/test/fdb_injection_test.cpp
b/cloud/test/fdb_injection_test.cpp
index 39590bbb6d8..921ea4fcec6 100644
--- a/cloud/test/fdb_injection_test.cpp
+++ b/cloud/test/fdb_injection_test.cpp
@@ -70,6 +70,8 @@ int main(int argc, char** argv) {
cloud::config::txn_store_retry_base_intervals_ms = 1;
cloud::config::fdb_cluster_file_path = "fdb.cluster";
cloud::config::write_schema_kv = true;
+ // UT may be run without fdb, it will take unnecessary time with the
default value
+ cloud::config::fdb_txn_timeout_ms = 500;
auto sp = cloud::SyncPoint::get_instance();
sp->enable_processing();
diff --git a/cloud/test/mem_txn_kv_test.cpp b/cloud/test/mem_txn_kv_test.cpp
index 9db71ba96c8..c7ab3c62f08 100644
--- a/cloud/test/mem_txn_kv_test.cpp
+++ b/cloud/test/mem_txn_kv_test.cpp
@@ -35,6 +35,8 @@ std::shared_ptr<cloud::TxnKv> fdb_txn_kv;
int main(int argc, char** argv) {
cloud::config::init(nullptr, true);
cloud::config::fdb_cluster_file_path = "fdb.cluster";
+ // UT may be run without fdb, it will take unnecessary time with the
default value
+ cloud::config::fdb_txn_timeout_ms = 500;
fdb_txn_kv =
std::dynamic_pointer_cast<cloud::TxnKv>(std::make_shared<cloud::FdbTxnKv>());
if (!fdb_txn_kv.get()) {
std::cout << "exit get FdbTxnKv error" << std::endl;
diff --git a/cloud/test/txn_kv_test.cpp b/cloud/test/txn_kv_test.cpp
index 63a89a07434..b3bfd4f0388 100644
--- a/cloud/test/txn_kv_test.cpp
+++ b/cloud/test/txn_kv_test.cpp
@@ -42,6 +42,8 @@ std::shared_ptr<TxnKv> txn_kv;
void init_txn_kv() {
config::fdb_cluster_file_path = "fdb.cluster";
+ // UT may be run without fdb, it will take unnecessary time with the
default value
+ config::fdb_txn_timeout_ms = 500;
txn_kv = std::dynamic_pointer_cast<TxnKv>(std::make_shared<FdbTxnKv>());
ASSERT_NE(txn_kv.get(), nullptr);
int ret = txn_kv->init();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]