This is an automated email from the ASF dual-hosted git repository. zykkk 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 c169fd392f1 [fix](jdbc catalog) fix be crash when create jdbc catalog without driver jar #42948 (#42972) c169fd392f1 is described below commit c169fd392f15b9bd5b1c53dde5fef420fd39070d Author: Mingyu Chen (Rayner) <morning...@163.com> AuthorDate: Thu Oct 31 14:33:40 2024 +0800 [fix](jdbc catalog) fix be crash when create jdbc catalog without driver jar #42948 (#42972) cherry pick from #42948 Co-authored-by: zy-kkk <zhongy...@gmail.com> --- be/src/vec/exec/vjdbc_connector.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/be/src/vec/exec/vjdbc_connector.cpp b/be/src/vec/exec/vjdbc_connector.cpp index 6c8491ef213..0fa33bfaad9 100644 --- a/be/src/vec/exec/vjdbc_connector.cpp +++ b/be/src/vec/exec/vjdbc_connector.cpp @@ -192,6 +192,9 @@ Status JdbcConnector::test_connection() { } Status JdbcConnector::clean_datasource() { + if (!_is_open) { + return Status::OK(); + } JNIEnv* env = nullptr; RETURN_IF_ERROR(JniUtil::GetJNIEnv(&env)); env->CallNonvirtualVoidMethod(_executor_obj, _executor_clazz, _executor_clean_datasource_id); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org