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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
