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

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


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 20debebcc20 branch-4.0: [fix][arrow-flight-sql]Move ctx.clear() to the 
end of close method #57858 (#58011)
20debebcc20 is described below

commit 20debebcc202917093d6da9334df85b5100b030a
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Nov 14 17:21:37 2025 +0800

    branch-4.0: [fix][arrow-flight-sql]Move ctx.clear() to the end of close 
method #57858 (#58011)
    
    Cherry-picked from #57858
    
    Co-authored-by: zhaorongsheng <[email protected]>
---
 .../org/apache/doris/service/arrowflight/FlightSqlConnectProcessor.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/FlightSqlConnectProcessor.java
 
b/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/FlightSqlConnectProcessor.java
index 345d7d824a2..2e5dfb3259e 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/FlightSqlConnectProcessor.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/FlightSqlConnectProcessor.java
@@ -195,12 +195,12 @@ public class FlightSqlConnectProcessor extends 
ConnectProcessor implements AutoC
     @Override
     public void close() throws Exception {
         ctx.setCommand(MysqlCommand.COM_SLEEP);
-        ctx.clear();
         for (StmtExecutor asynExecutor : returnResultFromRemoteExecutor) {
             asynExecutor.finalizeQuery();
         }
         returnResultFromRemoteExecutor.clear();
         executor.finalizeQuery();
+        ctx.clear();
         ConnectContext.remove();
     }
 }


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

Reply via email to