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

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


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

commit 51c91e9eeca9bdd7c3f07e3fb9dc99b283fa5895
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Jul 3 12:20:18 2025 +0800

    branch-3.1: [fix](main) check error immediately after flight_server init 
#52616 (#52622)
    
    Cherry-picked from #52616
    
    Co-authored-by: Kaijie Chen <[email protected]>
---
 be/src/service/doris_main.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/service/doris_main.cpp b/be/src/service/doris_main.cpp
index 00935e8fc64..67c8e870e70 100644
--- a/be/src/service/doris_main.cpp
+++ b/be/src/service/doris_main.cpp
@@ -593,12 +593,12 @@ 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);
+    stop_work_if_error(
+            status, "Arrow Flight Service did not start correctly, exiting, " 
+ status.to_string());
 
     // 6. start daemon thread to do clean or gc jobs
     doris::Daemon daemon;
     daemon.start();
-    stop_work_if_error(
-            status, "Arrow Flight Service did not start correctly, exiting, " 
+ status.to_string());
 
     exec_env->storage_engine().notify_listeners();
 


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

Reply via email to