From 04f0701692d5904f69936ab6a13c846478917712 Mon Sep 17 00:00:00 2001 From: padmejin <89557328+padmejin@users.noreply.github.com> Date: Mon, 18 Jul 2022 21:21:39 +0800 Subject: [PATCH] [BugFix] set bdb timeout to 1 minutes for UT (#8855) --- .../java/com/starrocks/journal/bdbje/BDBEnvironmentTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fe/fe-core/src/test/java/com/starrocks/journal/bdbje/BDBEnvironmentTest.java b/fe/fe-core/src/test/java/com/starrocks/journal/bdbje/BDBEnvironmentTest.java index 18a9f79af3150..c03e2b58f0437 100644 --- a/fe/fe-core/src/test/java/com/starrocks/journal/bdbje/BDBEnvironmentTest.java +++ b/fe/fe-core/src/test/java/com/starrocks/journal/bdbje/BDBEnvironmentTest.java @@ -41,6 +41,10 @@ public void setup() throws Exception { // give master time to update membership // otherwise may get error Conflicting node types: uses: SECONDARY Replica is configured as type: ELECTABLE BDBEnvironment.SLEEP_INTERVAL_SEC = 1; + // set timeout to a really long time so that ut can pass even when IO load is very high + Config.bdbje_heartbeat_timeout_second = 60; + Config.bdbje_replica_ack_timeout_second = 60; + Config.bdbje_lock_timeout_second = 60; } @After