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

dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new c41179b8e9 [fix](regression) Improve the robustness when close target 
connection (#23012)
c41179b8e9 is described below

commit c41179b8e906ba6aa6494e46f92e34ede12e182a
Author: DeadlineFen <[email protected]>
AuthorDate: Wed Aug 16 11:42:58 2023 +0800

    [fix](regression) Improve the robustness when close target connection 
(#23012)
---
 .../groovy/org/apache/doris/regression/suite/SyncerContext.groovy     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/SyncerContext.groovy
 
b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/SyncerContext.groovy
index 42659c892f..eb5823e9a0 100644
--- 
a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/SyncerContext.groovy
+++ 
b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/SyncerContext.groovy
@@ -212,6 +212,8 @@ class SyncerContext {
     }
 
     void closeConn() {
-        targetConnection.close()
+        if (targetConnection != null) {
+            targetConnection.close()
+        }
     }
 }


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

Reply via email to