This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new ea8ef605a6c [fix](main) check error immediately after flight_server 
init (#52616) (#52624)
ea8ef605a6c is described below

commit ea8ef605a6ce3bac5e6d72473215487c18fcca80
Author: Kaijie Chen <[email protected]>
AuthorDate: Wed Jul 2 10:21:38 2025 +0800

    [fix](main) check error immediately after flight_server init (#52616) 
(#52624)
    
    backport #52616
---
 be/src/service/doris_main.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/be/src/service/doris_main.cpp b/be/src/service/doris_main.cpp
index b85790f9ec1..e87c5950a3e 100644
--- a/be/src/service/doris_main.cpp
+++ b/be/src/service/doris_main.cpp
@@ -584,10 +584,6 @@ int main(int argc, char** argv) {
     std::shared_ptr<doris::flight::FlightSqlServer> flight_server =
             std::move(doris::flight::FlightSqlServer::create()).ValueOrDie();
     status = flight_server->init(doris::config::arrow_flight_sql_port);
-
-    // 6. start daemon thread to do clean or gc jobs
-    doris::Daemon daemon;
-    daemon.start();
     if (!status.ok()) {
         LOG(ERROR) << "Arrow Flight Service did not start correctly, exiting, "
                    << status.to_string();
@@ -595,6 +591,10 @@ int main(int argc, char** argv) {
         exit(1);
     }
 
+    // 6. start daemon thread to do clean or gc jobs
+    doris::Daemon daemon;
+    daemon.start();
+
     exec_env->get_storage_engine()->notify_listeners();
 
     while (!doris::k_doris_exit) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to