This is an automated email from the ASF dual-hosted git repository.
hellostephen 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 a5df5ee8879 Revert "[Opt](heartbeat) improve the tolerance of the
cluster to occasional heartbeat failures" (#39021)
a5df5ee8879 is described below
commit a5df5ee88797262261ef705b38b5eedc8d09aa47
Author: Xin Liao <[email protected]>
AuthorDate: Wed Aug 7 15:06:50 2024 +0800
Revert "[Opt](heartbeat) improve the tolerance of the cluster to occasional
heartbeat failures" (#39021)
Reverts apache/doris#38896
---
fe/fe-common/src/main/java/org/apache/doris/common/Config.java | 4 ++--
fe/fe-core/src/test/java/org/apache/doris/clone/TabletHealthTest.java | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
b/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
index ff7078b7e3a..c8db6482428 100644
--- a/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
+++ b/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
@@ -1923,12 +1923,12 @@ public class Config extends ConfigBase {
/**
* Maximum backend heartbeat failure tolerance count.
- * Default is 3, which means if 3 heart failed, the backend will be marked
as dead.
+ * Default is 1, which means if 1 heart failed, the backend will be marked
as dead.
* A larger value can improve the tolerance of the cluster to occasional
heartbeat failures.
* For example, when running regression tests, this value can be increased.
*/
@ConfField(mutable = true, masterOnly = true)
- public static long max_backend_heartbeat_failure_tolerance_count = 3;
+ public static long max_backend_heartbeat_failure_tolerance_count = 1;
/**
* Abort transaction time after lost heartbeat.
diff --git
a/fe/fe-core/src/test/java/org/apache/doris/clone/TabletHealthTest.java
b/fe/fe-core/src/test/java/org/apache/doris/clone/TabletHealthTest.java
index 7949352eeb3..b22925e5d89 100644
--- a/fe/fe-core/src/test/java/org/apache/doris/clone/TabletHealthTest.java
+++ b/fe/fe-core/src/test/java/org/apache/doris/clone/TabletHealthTest.java
@@ -61,7 +61,6 @@ public class TabletHealthTest extends TestWithFeService {
Config.colocate_group_relocate_delay_second = -1000; // be dead will
imm relocate
Config.tablet_schedule_interval_ms = 7200_000L; //disable schedule
Config.tablet_checker_interval_ms = 7200_000L; //disable checker
- Config.max_backend_heartbeat_failure_tolerance_count = 1;
}
@Override
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]