From d1db11f2bedc604899496e172510411e16107adb Mon Sep 17 00:00:00 2001 From: padmejin Date: Mon, 18 Jul 2022 16:36:15 +0800 Subject: [PATCH] [BugFix] set bdb timeout to 1 minutes for UT --- .../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 522f312560f21..d6f4cedb4d454 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