You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/04/20 10:10:49 UTC
[doris] 02/06: [bugfix](be) Fix segment fault if the PID_DIR wasn't set (#18789)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-2.0-alpha
in repository https://gitbox.apache.org/repos/asf/doris.git
commit 9f6b49833db9bd43caeff637feb5f5c1a0bd1b31
Author: hulk <hu...@gmail.com>
AuthorDate: Thu Apr 20 10:39:54 2023 +0800
[bugfix](be) Fix segment fault if the PID_DIR wasn't set (#18789)
Doris BE would crash if the PID_DIR wasn't set
---
be/src/service/doris_main.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/be/src/service/doris_main.cpp b/be/src/service/doris_main.cpp
index be10089eae..bb69acf72a 100644
--- a/be/src/service/doris_main.cpp
+++ b/be/src/service/doris_main.cpp
@@ -282,6 +282,10 @@ int main(int argc, char** argv) {
fprintf(stderr, "you need set DORIS_HOME environment variable.\n");
exit(-1);
}
+ if (getenv("PID_DIR") == nullptr) {
+ fprintf(stderr, "you need set PID_DIR environment variable.\n");
+ exit(-1);
+ }
using doris::Status;
using std::string;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org