Doris-Breakwater commented on issue #71059: URL: https://github.com/apache/doris/issues/71059#issuecomment-7188473468
I confirmed the BE launcher failure on `master` and `branch-4.1`. The Kubernetes entrypoint invokes `start_be.sh --console`, which leaves the BE's stdout on the console and appends its stderr to `be.out`. The launcher also writes its start-time message to that file under `set -e`. In a test using the original launchers, stub executables, and `/dev/full` as the output file, the write returned `ENOSPC` and Bash exited with status 1 before invoking `doris_be` on both branches. The JDK version probe also appends diagnostics under `set -e`, so making just the start-time append best-effort would still leave another early failure path. [Kubernetes entrypoint](https://github.com/apache/doris/blob/08fc5dd361e3345867287e189bea75c4d918a155/docker/runtime/be/resource/be_entrypoint.sh#L526-L533) · [BE startup writes](https://github.com/apache/doris/blob/08fc5dd361e3345867287e189bea75c4d918a155/bin/start_be.sh#L110-L145) · [BE console launch](https://github.com/apache/doris/blob/08fc5dd361e33 45867287e189bea75c4d918a155/bin/start_be.sh#L679-L692) · [4.1 console launch](https://github.com/apache/doris/blob/68846e9fb034dfff9d2fa3ad7ad57c04fda28ec3/bin/start_be.sh#L595-L608) Glog's rolling settings govern its own files. The shell-owned `be.out` append has no size limit in the launcher. Normal console-mode glog output goes to stdout, and the glog stderr threshold still permits fatal output. The source of the reported bursts is still unknown. [BE logging configuration](https://github.com/apache/doris/blob/08fc5dd361e3345867287e189bea75c4d918a155/be/src/common/logconfig.cpp#L150-L235) The FE has a related retention problem. In FE console mode the launcher logs to the console and redirects Java **stdout** to `fe.out`, with stderr inherited. In the launcher test, the Java stub started when the file opened and writes failed. A failed open stopped the launcher before invoking Java. [FE startup logger](https://github.com/apache/doris/blob/08fc5dd361e3345867287e189bea75c4d918a155/bin/start_fe.sh#L199-L213) · [FE console launch](https://github.com/apache/doris/blob/08fc5dd361e3345867287e189bea75c4d918a155/bin/start_fe.sh#L459-L466) For the PR, I'd start with the Kubernetes console path. Inherit stderr for the BE so kubelet rotation covers that stream, and send startup diagnostics to the console or make their file writes best-effort. Keep diagnostic text off the JDK probe's stdout because the launcher parses it as the version. Test that stderr crash diagnostics reach the container log and that the launcher reaches the BE when the optional log file fails to open or write. For deployments that retain file capture, a size bound needs to apply during runtime. Renaming the file alone leaves the running process writing to the original inode. Recovery on an already full volume still requires headroom for required writes. [Kubernetes container log rotation](https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation) Could you share the deployed image tag or digest, effective launch arguments and `LOG_DIR` mount, the failing lines from `kubectl logs --previous`, and available blocks and inodes on the mount (`df -h` and `df -i`)? A short redacted sample from one of the bursts, with timestamps and any workload active at the time, would help identify the writer. Breakwater-GitHub-Analysis-Slot: slot_d0a71f94c8d5 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
