This is an automated email from the ASF dual-hosted git repository. kxiao pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/doris.git
commit 1ab06ac7049f7bde1f843b3062464b3ae6feef33 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]
