This is an automated email from the ASF dual-hosted git repository.
hello-stephen 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 fc639a14a6c [docker] skip BE restart in terminating pod (#64118)
fc639a14a6c is described below
commit fc639a14a6cb19e23565c868e62d4c170337d5d8
Author: Linying Assad <[email protected]>
AuthorDate: Thu Jun 4 19:05:26 2026 +0800
[docker] skip BE restart in terminating pod (#64118)
## Summary
- add a terminating sentinel path for disaggregated BE startup
- exit before any registration/startup side effects when the pod is
already marked terminating
- keep the sentinel path overridable via env for operator integration
## Test
- `bash -n docker/runtime/be/resource/be_disaggregated_entrypoint.sh`
- `TERMINATING_SENTINEL_PATH=$(mktemp -u) ...` minimal local run with a
touched sentinel file, verify script exits `0` before `start_be.sh`
---
docker/runtime/be/resource/be_disaggregated_entrypoint.sh | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/docker/runtime/be/resource/be_disaggregated_entrypoint.sh
b/docker/runtime/be/resource/be_disaggregated_entrypoint.sh
index 512596cc6c1..4e55e45eea0 100755
--- a/docker/runtime/be/resource/be_disaggregated_entrypoint.sh
+++ b/docker/runtime/be/resource/be_disaggregated_entrypoint.sh
@@ -52,6 +52,7 @@ STATEFULSET_NAME=${STATEFULSET_NAME}
ENABLE_WORKLOAD_GROUP=${ENABLE_WORKLOAD_GROUP:-false}
WORKLOAD_GROUP_PATH="/sys/fs/cgroup/cpu/doris"
+TERMINATING_SENTINEL_PATH=${TERMINATING_SENTINEL_PATH:-"/var/run/doris-operator/terminating"}
# enable_tls specify use tls connection or not.
ENABLE_TLS=
@@ -70,6 +71,14 @@ log_stderr()
echo "[`date`] $@" >&2
}
+exit_if_terminating_sentinel_exists()
+{
+ if [[ -f "$TERMINATING_SENTINEL_PATH" ]]; then
+ log_stderr "[info] terminating sentinel detected at
$TERMINATING_SENTINEL_PATH, skip starting BE in terminating pod."
+ exit 0
+ fi
+}
+
# start workload
function add_workloadgroup_config()
{
@@ -600,6 +609,8 @@ function post_exit() {
# scripts start position.
+exit_if_terminating_sentinel_exists
+
fe_addrs=$1
if [[ "x$fe_addrs" == "x" ]]; then
echo "need fe address as paramter!"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]